-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (37 loc) · 984 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (37 loc) · 984 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
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
volumes:
- ./backend/user-data/databases:/app/databases
- ./backend/user-data/photos:/app/photos:ro
- ./backend/user-data/static:/app/static:ro
- ./backend/user-data/weddingdata.json:/app/weddingdata.json:ro
environment:
- DOMAIN=http://localhost:3000 # where you expect the final website to be hosted
- SESSION_SECRET=changeme-docker-compose # change this to a random string
expose:
- 5000
networks:
- app-network
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost:5000/api/health"]
interval: 5s
timeout: 3s
retries: 3
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "3000:80"
depends_on:
- backend
volumes:
- ./frontend/user-data:/public-data
networks:
- app-network
networks:
app-network:
driver: bridge