-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompose.yaml
61 lines (59 loc) · 1.28 KB
/
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
56
57
58
59
60
61
services:
# use nginx
nginx:
container_name: nginx-proxy
ports:
- 80:80
- 443:443
image: nginx:alpine
restart: unless-stopped
volumes:
- ./configs/nginx/conf.d:/etc/nginx/conf.d
- ./configs/nginx/www:/var/www
env_file:
- ./envs/nginx.env
depends_on:
- pds
networks:
# Webプロクシはフロントエンドネットワークのみ
- frontend
pds:
container_name: pds
image: ghcr.io/bluesky-social/pds:latest
restart: unless-stopped
volumes:
- type: bind
source: ./data
target: /pds
labels:
- 'com.centurylinklabs.watchtower.enable=true'
env_file:
- ./envs/pds.env
networks:
- frontend
- backend
watchtower:
container_name: watchtower
image: containrrr/watchtower:latest
volumes:
- type: bind
source: /var/run/docker.sock
target: /var/run/docker.sock
restart: unless-stopped
environment:
WATCHTOWER_CLEANUP: true
WATCHTOWER_SCHEDULE: "@midnight"
# docker network
networks:
frontend:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.30.10.0/24
backend:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.30.20.0/24