-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (42 loc) · 849 Bytes
/
docker-compose.yml
File metadata and controls
47 lines (42 loc) · 849 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
version: "3.8"
services:
app:
build:
context: .
dockerfile: Dockerfile
container_name: mywebsite_app
restart: always
environment:
- ENV=production
networks:
- my_network
caddy:
image: caddy:latest
container_name: mywebsite_caddy
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data
- caddy_config:/config
depends_on:
- app
networks:
- my_network
watchtower:
image: containrrr/watchtower:latest
container_name: watchtower_new
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --cleanup --interval 300
networks:
- my_network
volumes:
caddy_data:
caddy_config:
networks:
my_network:
driver: bridge