-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
62 lines (56 loc) · 1.05 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
version: "3"
services:
front-end:
build:
context: ./front-end
dockerfile: Dockerfile
depends_on:
- back-end
restart: unless-stopped
back-end:
build:
context: ./back-end
dockerfile: Dockerfile
volumes:
- back-end-files:/app/files
env_file:
- .env
links:
- database
depends_on:
- database
restart: unless-stopped
nginx:
image: nginx:1.22.0-alpine
links:
- front-end
- back-end
depends_on:
- front-end
- back-end
volumes:
- "./config/nginx/reverse-proxy.conf:/etc/nginx/conf.d/default.conf"
ports:
- 4242:80
restart: unless-stopped
database:
image: postgres:14.5-alpine3.16
env_file:
- .env
volumes:
- db-data:/var/lib/postgresql/data/pgdata
restart: unless-stopped
pgadmin:
image: dpage/pgadmin4:latest
ports:
- 8000:80
env_file:
- .env
depends_on:
- database
links:
- database
restart: unless-stopped
volumes:
db-data:
back-end-files: