-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.dev.yml
65 lines (61 loc) · 1.54 KB
/
docker-compose.dev.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
volumes:
wygiwyh_dev_postgres_data: {}
wygiwyh_temp:
services:
web: &django
build:
context: .
dockerfile: ./docker/dev/django/Dockerfile
image: wygiwyh_dev_server
container_name: wygiwyh_dev_server
command: /start
volumes:
- ./app/:/usr/src/app/:z
- ./frontend/:/usr/src/frontend:z
- wygiwyh_temp:/usr/src/app/temp/
ports:
- "${OUTBOUND_PORT}:8000"
env_file:
- .env
depends_on:
- db
- webpack
restart: unless-stopped
webpack:
build:
context: .
dockerfile: ./docker/dev/webpack/Dockerfile
image: wygiwyh_dev_node
container_name: wygiwyh_dev_node
volumes:
- ./frontend/:/usr/src/frontend
- ./app/:/usr/src/app/
# http://jdlm.info/articles/2016/03/06/lessons-building-node-app-docker.html
- /usr/src/frontend/node_modules
command: npm run watch
ports:
- '${WEBPACK_OUTBOUND_PORT}:9091'
environment:
- WATCHPACK_POLLING=true
restart: unless-stopped
db:
image: postgres:15
container_name: ${SQL_HOST}
volumes:
- wygiwyh_dev_postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=${SQL_USER}
- POSTGRES_PASSWORD=${SQL_PASSWORD}
- POSTGRES_DB=${SQL_DATABASE}
ports:
- '${SQL_PORT}:5432'
restart: unless-stopped
procrastinate:
<<: *django
image: wygiwyh_dev_procrastinate
container_name: wygiwyh_dev_procrastinate
depends_on:
- db
ports: [ ]
command: /start-procrastinate
restart: unless-stopped