-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
83 lines (77 loc) · 1.6 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
services:
db:
image: postgres:16.4-bullseye
container_name: atlas_db
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_NAME}
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- app-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_USER}"]
interval: 3s
timeout: 60s
retries: 5
restart : always
pgadmin:
image: dpage/pgadmin4
container_name: atlas_pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: admin
ports:
- "5050:80"
volumes:
- pgadmin_data:/var/lib/pgadmin
networks:
- app-network
restart: always
depends_on:
- db
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: atlas_frontend
ports:
- "3000:3000"
# volumes:
# - ./frontend:/app
# - /app/node_modules
environment:
- VITE_API_URL=http://localhost:8000
networks:
- app-network
restart: always
depends_on:
- backend
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: atlas_backend
ports:
- "8000:8000"
environment:
- DB_NAME=${DB_NAME}
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASSWORD}
- DB_HOST=db
- DB_PORT=5432
- DEBUG=1
networks:
- app-network
restart: always
depends_on:
- db
volumes:
postgres_data:
pgadmin_data:
networks:
app-network:
driver: bridge