-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
50 lines (47 loc) · 1023 Bytes
/
compose.yaml
File metadata and controls
50 lines (47 loc) · 1023 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
44
45
46
47
48
49
50
services:
server:
build: ./server
container_name: flask-backend
ports:
- "5001:5001"
volumes:
- ./server:/app
- /var/run/docker.sock:/var/run/docker.sock
environment:
- FLASK_ENV=development
depends_on:
db:
condition: service_healthy
cap_add:
- SYS_ADMIN
- SYS_PTRACE
- NET_ADMIN
security_opt:
- seccomp=unconfined
- apparmor=unconfined
platform: "linux/amd64"
client:
build: ./client
container_name: react-frontend
ports:
- "3000:3000"
depends_on:
- server
db:
image: postgres:latest
restart: always
container_name: postgres-db
user: postgres
ports:
- "5432:5432"
volumes:
- ./db/init.sql:/docker-entrypoint-initdb.d/init.sql
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 1s
timeout: 5s
retries: 5