-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
43 lines (39 loc) · 979 Bytes
/
Copy pathdocker-compose.prod.yml
File metadata and controls
43 lines (39 loc) · 979 Bytes
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
services:
postgres:
image: postgres:16-alpine
container_name: trade_sim_db
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres123
POSTGRES_DB: trade_simulation
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- tradesim-net
restart: unless-stopped
api:
image: ghcr.io/govinsaga/trade-sim-api:latest
container_name: trade_sim_api
depends_on:
- postgres
environment:
- ASPNETCORE_ENVIRONMENT=Production
- ConnectionStrings__DefaultConnection=Host=postgres;Database=trade_simulation;Username=postgres;Password=postgres123
networks:
- tradesim-net
restart: unless-stopped
client:
image: ghcr.io/govinsaga/trade-sim-client:latest
container_name: trade_sim_client
depends_on:
- api
ports:
- "5050:80"
networks:
- tradesim-net
restart: unless-stopped
networks:
tradesim-net:
driver: bridge
volumes:
pgdata: