-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
99 lines (91 loc) · 2.29 KB
/
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
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#####################################################
# Used for Local Dev Only
#####################################################
version: "3.8"
x-interactive: &interactive
stdin_open: true # docker run -i
tty: true # docker run -t
services:
db:
container_name: indeaa_postgres
image: postgres:13.5-alpine
restart: &restart-policy unless-stopped
env_file: &env-file .env
environment:
TZ: Australia/Perth
volumes:
- ~/docker/indeaa/postgres:/var/lib/postgresql/data
ports:
- "5432:5432"
<<: *interactive
frontend:
build:
context: .
dockerfile: docker/frontend/Dockerfile
args:
- NODE_ENV=development
- SENTRY_AUTH_TOKEN=$SENTRY_AUTH_TOKEN
container_name: indeaa_react
restart: *restart-policy
env_file: *env-file
ports:
- 3000:3000
volumes:
- ./frontend:/app_code
# Barrier for OS node modules specific
- /app_code/node_modules
# Nextjs specific build
- /app_code/.next
<<: *interactive
backend:
build:
context: .
dockerfile: docker/backend/Dockerfile
container_name: indeaa_django
restart: *restart-policy
env_file: *env-file
depends_on:
- db
ports:
- "8000:8000"
volumes:
- ./backend:/app_code
<<: *interactive
docs:
container_name: indeaa_docs
build:
context: .
dockerfile: docker/docs/Dockerfile
restart: *restart-policy
env_file: *env-file
ports:
- "18100:8000"
volumes:
- ./docs:/docs
<<: *interactive
# Used for Local development only
mailhog:
container_name: indeaa_mailhog
image: mailhog/mailhog:v1.0.1
restart: *restart-policy
env_file: *env-file
ports:
- "11003:8025"
- "1025:1025"
logging:
driver: none # Disable logging to console due to amount of logging noise it generates in docker-compose logs
# Database Admin/UI
pgadmin:
container_name: indeaa_pgadmin
build:
context: ./docker/pgadmin/
dockerfile: Dockerfile
restart: *restart-policy
env_file: *env-file
depends_on:
- db
ports:
- "11004:80"
logging:
driver: none # Disable logging to console due to amount of logging noise it generates in docker-compose logs
<<: *interactive