-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
40 lines (40 loc) · 993 Bytes
/
docker-compose.yaml
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
services:
db:
image: postgres
volumes:
- ./srv/postgres:/var/lib/postgresql/data
- ./backend/database/init.sql:/docker-entrypoint-initdb.d/init.sql
- ./backend/database/payouts_init.sql:/docker-entrypoint-initdb.d/payouts_init.sql
environment:
- POSTGRES_DB=postgres
- POSTGRES_PASSWORD=password
ports:
- "0.0.0.0:5432:5432"
restart: always
casino-backend:
image: eclipse-temurin:latest
build:
context: .
dockerfile: ./backend/backend.Dockerfile
restart: unless-stopped
expose:
- "8080"
ports:
- "0.0.0.0:8080:8080"
depends_on:
- "db"
environment:
POSTGRES_DB: "postgres"
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "password"
casino-frontend:
build:
context: .
dockerfile: ./frontend/frontend.Dockerfile
restart: unless-stopped
expose:
- "6969"
ports:
- "0.0.0.0:6969:80"
depends_on:
- "casino-backend"