-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
58 lines (55 loc) · 1.08 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
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
volumes:
- avatars:/usr/src/app/uploads
restart: unless-stopped
env_file:
- ./.env
- ./backend/.env
ports:
- "3000:3000"
depends_on:
database:
condition: service_healthy
networks:
- transcendence
database:
image: postgres:latest
restart: unless-stopped
ports:
- "5432:5432"
volumes:
- postgres-data:/data/postgres
networks:
- transcendence
env_file:
- ./.env
environment:
PGDATA: /data/postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
interval: 5s
timeout: 5s
retries: 5
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "9090:9090"
restart: unless-stopped
env_file:
- ./frontend/.env
environment:
NODE_ENV: production
networks:
- transcendence
volumes:
postgres-data:
avatars:
networks:
transcendence:
driver: bridge