forked from nf-core/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (42 loc) · 960 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
version: '3.8'
services:
db:
image: mysql:8.0
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: typist0tulip7console-PIMENTO4cosmic
MYSQL_DATABASE: nfcore
MYSQL_USER: nfcore_admin
MYSQL_PASSWORD: PEBBLY8exhibit_mead1cilium6despise
volumes:
- ./.mysql-data/db:/var/lib/mysql
web:
container_name: nf-core-web
image: webdevops/php-apache:7.4
restart: always
environment:
- WEB_DOCUMENT_ROOT=/var/www/public_html
volumes:
- .:/var/www/
ports:
- '8888:80'
depends_on:
- composer
- db
- npm
composer:
image: composer:2.1
command: ['composer', 'install']
volumes:
- .:/var/www/
working_dir: /var/www/
npm:
image: node:16-alpine3.12
container_name: npm
volumes:
- .:/var/www/
command: sh -c "npm install --quiet &&
npm run copy-assets &&
npm run watch-sass"
working_dir: /var/www/