-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
72 lines (66 loc) · 1.23 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
version: "3.9"
services:
postgres:
image: postgres:latest
env_file:
- ./docker/postgres.env
environment:
TZ: "Europe/Paris"
restart: unless-stopped
volumes:
- data:/var/lib/postgresql/data
ports:
- 5432:5432
networks:
- backend
pgadmin:
image: dpage/pgadmin4:latest
restart: unless-stopped
env_file:
- ./docker/pgadmin.env
environment:
TZ: "Europe/Paris"
logging:
driver: none
volumes:
- ./docker/pgadmin_servers.json:/pgadmin4/servers.json
ports:
- 5050:80
networks:
- backend
depends_on:
- postgres
backend:
build:
context: ./docker
dockerfile: ./backend.dockerfile
ports:
- 3000:3000
networks:
- backend
volumes:
- ./backend:/app
env_file:
- ./docker/backend.env
restart: unless-stopped
depends_on:
- postgres
frontend:
build:
context: ./docker
dockerfile: ./frontend.dockerfile
ports:
- 8080:8080
networks:
- backend
volumes:
- ./frontend:/app
env_file:
- ./docker/frontend.env
restart: unless-stopped
depends_on:
- backend
volumes:
data:
networks:
backend: