Skip to content

Commit

Permalink
Use mount syntax in docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
rednafi committed Oct 15, 2024
1 parent 00c739f commit fd0bc83
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ services:
labels:
- fnano
volumes:
- .:/code
- type: bind
source: .
target: /code
entrypoint:
- /bin/sh
- -c
Expand All @@ -30,10 +32,15 @@ services:
- "80:80"
- "443:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data
- caddy_config:/config

- type: bind
source: ./Caddyfile
target: /etc/caddy/Caddyfile
- type: volume
source: caddy_data
target: /data
- type: volume
source: caddy_config
target: /config
depends_on:
- fnano

Expand Down

0 comments on commit fd0bc83

Please sign in to comment.