-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
55 lines (52 loc) · 1.06 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
services:
sveltekit:
container_name: sveltekit
image: sveltekit
build:
context: .
dockerfile: Dockerfile
environment:
- NODE_ENV=production
- PRISMA_CLI_BINARY_TARGETS=debian-openssl-3.0.x
env_file:
- .env
restart: unless-stopped
ports:
- 3000:3000
volumes:
- ${DEV_STATIC_DIR}:/usercontent
depends_on:
- db
- caddy
db:
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- 5432:5432
caddy:
build:
context: .
dockerfile: Dockerfile-caddy
restart: unless-stopped
ports:
- "80:80"
- "443:443"
- "443:443/udp"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- ${DEV_STATIC_DIR}:/srv
- caddy_data:/data
- caddy_config:/config
- ./forsen-wiki-logs:/var/log
depends_on:
- db
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
pgdata:
caddy_data:
caddy_config: