-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yaml
More file actions
47 lines (44 loc) · 951 Bytes
/
Copy pathdocker-compose.prod.yaml
File metadata and controls
47 lines (44 loc) · 951 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
services:
api:
container_name: api
build:
context: .
dockerfile: ./api/Dockerfile
ports:
- '${API_PORT:-8080}:${API_PORT:-8080}'
env_file:
- ./.env
restart: unless-stopped
redis:
image: redis:7
container_name: redis
ports:
- "6379:6379"
restart: unless-stopped
caddy:
container_name: caddy
build:
context: ./
dockerfile: ./caddy/Dockerfile
environment:
DOMAIN: '${DOMAIN}'
API_PORT: '${API_PORT:-8080}'
CLOUDFLARE_API_TOKEN: '${CLOUDFLARE_API_TOKEN}'
CLOUDFLARE_EMAIL: '${CLOUDFLARE_EMAIL}'
ports:
- "80:80"
- "443:443"
- "443:443/udp"
env_file:
- ./.env
volumes:
- ./caddy/Caddyfile:/etc/caddy/Caddyfile
- ./caddy/site:/srv
- caddy_data:/data
- caddy_config:/config
depends_on:
api:
condition: service_started
volumes:
caddy_data:
caddy_config: