-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.dev.yml
70 lines (67 loc) · 1.65 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
66
67
68
69
70
services:
api-dev:
container_name: api-dev
image: api-dev:latest
build:
context: ./api
dockerfile: ./docker/Dockerfile
# Should match the stage name in Dockerfile
target: development
restart: always
init: true
tty: true
ports:
# Port for the app
- 5000:8080
# node process is listening for a debugging client on
- 9230:9229
expose:
# Port for the app (i.e. webpack dev server port)
- 5000
env_file:
- ./api/docker/.api.common.env
- ./api/docker/.api.dev.env
- ./postgres/docker/.postgres.common.env
- ./postgres/docker/.postgres.dev.env
volumes:
# Recompile code on changes
- ./api:/home/node
# Set the container timezone to the time zone of host machine
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
depends_on:
- postgres-dev
- redis-dev
networks:
- livestreamer_backend
postgres-dev:
container_name: postgres-dev
image: postgres-dev:latest
build:
context: ./postgres
dockerfile: ./docker/Dockerfile
target: development
init: true
restart: "no"
env_file:
- ./postgres/docker/.postgres.common.env
- ./postgres/docker/.postgres.dev.env
ports:
- 54324:5432
networks:
- livestreamer_backend
redis-dev:
container_name: redis-dev
image: redis-dev:latest
build:
context: ./redis
dockerfile: ./docker/Dockerfile
init: true
ports:
- 6379:6379
networks:
- livestreamer_backend
networks:
livestreamer_backend:
name: livestreamer_backend
driver: bridge