generated from amosproj/amos202Xss0Y-projname
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
71 lines (64 loc) · 1.66 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
version: '3.8'
name: xcelerator-demo-app
services:
postgres:
image: postgres:alpine
volumes:
- postgres:/var/lib/postgresql/data
restart: unless-stopped
env_file:
- .env
ports:
- '5432:5432'
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
networks:
- db_network
- backend_network
cloudbeaver:
image: dbeaver/cloudbeaver
restart: unless-stopped
ports:
- '8978:8978'
networks:
- db_network
backend:
depends_on:
- postgres
image: ghcr.io/amosproj/amos2024ss01-xcelerator-demo-app-backend
build:
context: .
target: production
dockerfile: apps/backend/Dockerfile
restart: unless-stopped
ports:
- '${BACKEND_PORT}:${BACKEND_PORT}'
networks:
- backend_network
env_file:
- .env
frontend:
depends_on:
- backend
image: ghcr.io/amosproj/amos2024ss01-xcelerator-demo-app-frontend
build:
context: .
target: production
dockerfile: apps/frontend/Dockerfile
args:
XD_API_URL: localhost:3000
XD_SECRET_KEY: XceleratorDemoAppSecretKey
restart: unless-stopped
ports:
- '4200:80'
networks:
- backend_network
networks:
backend_network:
driver: bridge
db_network:
driver: bridge
volumes:
postgres: