-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (39 loc) · 942 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (39 loc) · 942 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
version: '3.8'
services:
fungame:
build:
context: .
dockerfile: Dockerfile
image: fungame:latest
restart: unless-stopped
environment:
- FLASK_ENV=production
- PORT=5000
- PNA_ALLOWED_ORIGINS=http://philippe.mourey.com:6000,https://philippe.mourey.com:6000
ports:
- "5000:5000"
volumes:
- ./logs:/app/logs:rw
- ./frontend/dist:/app/frontend/dist:ro
healthcheck:
test: ["CMD-SHELL", "curl -f http://127.0.0.1:5000/api || exit 1"]
interval: 30s
timeout: 5s
start_period: 10s
retries: 3
nginx:
image: nginx:alpine
restart: unless-stopped
ports:
- "6000:6000"
volumes:
- ./deploy/nginx.conf:/etc/nginx/conf.d/default.conf:ro
- ./deploy/certs:/etc/nginx/certs:ro
- ./logs:/var/log/nginx:rw
depends_on:
- fungame
networks:
- default
networks:
default:
name: fungame_net