-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (52 loc) · 1.01 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
services:
frontend:
build:
context: ./frontend
ports:
- '3000:3000'
environment:
NODE_ENV: production
depends_on:
- backend
networks:
- app-network
backend:
build:
context: .
dockerfile: backend/Dockerfile
ports:
- '3080:3080'
volumes:
- ./output:/app/output
environment:
RUST_ENV: production
DATABASE_URL: postgres://postgres:postgres@database:5432/postgres
depends_on:
- database
networks:
- app-network
database:
image: postgres:15-alpine
container_name: postgres
ports:
- '5432:5432'
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
networks:
- app-network
nginx:
image: nginx:alpine
ports:
- '80:80'
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
depends_on:
- frontend
- backend
networks:
- app-network
networks:
app-network:
driver: bridge