-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprod.docker-compose.yml
62 lines (58 loc) · 1.25 KB
/
prod.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
services:
web:
build:
context: .
dockerfile: ./apps/web/Dockerfile.prod
container_name: quick-start-web-prod
expose:
- 5173
ports:
- "5173:5173"
volumes:
- ./apps/web/:/app/apps/web
environment:
- DATABASE_URL=postgresql://opensource:sourceopen@postgres:5432/fasoshop
- PORT=3000
- UI_PORT=5173
depends_on:
- postgres
networks:
- app_network
server:
build:
context: .
dockerfile: ./apps/server/Dockerfile.prod
container_name: quick-start-server-prod
expose:
- 3000
ports:
- "3000:3000"
volumes:
- ./apps/server/:/app/apps/server
environment:
- DATABASE_URL=postgresql://opensource:sourceopen@postgres:5432/fasoshop
- PORT=3000
- UI_PORT=5173
depends_on:
- postgres
networks:
- app_network
postgres:
image: postgres:latest
container_name: fasoshop
environment:
POSTGRES_USER: opensource
POSTGRES_PASSWORD: sourceopen
POSTGRES_DB: fasoshop
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- app_network
volumes:
postgres_data:
driver: local
networks:
app_network:
driver: bridge