forked from Christwelve/transcendence
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
101 lines (95 loc) · 1.78 KB
/
docker-compose.yml
File metadata and controls
101 lines (95 loc) · 1.78 KB
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
100
101
networks:
transcendence:
driver: bridge
services:
nginx:
container_name: nginx
networks:
- transcendence
image: nginx:latest
ports:
- "443:443" # HTTPS port
- "80:80" # HTTP port
volumes:
- ${PWD}/nginx/conf.d:/etc/nginx/conf.d:ro
- ${PWD}/nginx/certs:/etc/nginx/certs:ro
depends_on:
- react
- django
- nodejs
nodejs:
container_name: nodejs
networks:
- transcendence
build:
context: ./nodejs
# ports:
# - "4000:4000"
volumes:
- ${PWD}/nodejs:/code/nodejs
- ${PWD}/shared:/shared
- nodejs_data:/code/nodejs/node_modules
django:
container_name: django
networks:
- transcendence
build:
context: ./django
# ports:
# - "8000:8000"
volumes:
- ${PWD}/django:/app
env_file:
- .env
depends_on:
- postgres
react:
container_name: react
networks:
- transcendence
build:
context: .
dockerfile: ./react/Dockerfile
# build:
# context: ./react
# ports:
# - "3000:3000"
volumes:
- ${PWD}/react:/app
- ${PWD}/shared:/shared
- /app/node_modules
env_file:
- .env
depends_on:
- django
postgres:
container_name: postgres
image: postgres:16.0
networks:
- transcendence
# ports:
# - "5432:5432"
expose:
- 5432
volumes:
- postgres_data:/var/lib/postgresql/data
env_file:
- .env
pgadmin:
container_name: pgadmin
networks:
- transcendence
build:
context: ./pgadmin
ports:
- "5050:80"
volumes:
- pgadmin_data:/var/lib/pgadmin
env_file:
- .env
depends_on:
- postgres
volumes:
nodejs_data:
postgres_data:
pgadmin_data: