-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (36 loc) · 874 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (36 loc) · 874 Bytes
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
version: "3"
services:
db:
image: codemonauts/mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: topsecret
MYSQL_DATABASE: django
MYSQL_USER: django
MYSQL_PASSWORD: django
volumes:
- .:/data:ro,delegated
- db-data:/var/lib/mysql:delegated
web:
build: .
command: /bin/sh -c 'wait && ./manage.py runserver 0.0.0.0:8000'
restart: always
volumes:
- .:/code:delegated
ports:
- "8000:8000"
environment:
DJANGO_SETTINGS_MODULE: opensplit.settings.common
WAIT_HOSTS: db:3306
depends_on:
- db
gulp:
image: "node:14"
user: "node"
working_dir: /code
volumes:
- .:/code:delegated
entrypoint: /bin/bash -c 'yarn install && ./node_modules/.bin/gulp'
volumes:
db-data: