-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
37 lines (34 loc) · 1.05 KB
/
docker-compose.yml
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
version: "3.9"
services:
portainer:
container_name: portainer
image: portainer/portainer-ce:2.15.1
restart: always
ports:
- "8000:8000"
- "9443:9443"
environment:
- VIRTUAL_HOST=portainer-research-rendi.innocentbatman.my.id
- VIRTUAL_PORT=9443
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./data:/data
- /etc/letsencrypt/live/portainer-research-rendi.innocentbatman.my.id:/certs/live/portainer-research-rendi.innocentbatman.my.id:ro
- /etc/letsencrypt/archive/portainer-research-rendi.innocentbatman.my.id:/certs/archive/portainer-research-rendi.innocentbatman.my.id:ro
command: -H unix:///var/run/docker.sock
networks:
- nginx_network
portainer_agent:
container_name: portainer-agent
image: portainer/agent:2.15.1
restart: always
ports:
- "9001:9001"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker/volumes:/var/lib/docker/volumes
networks:
- nginx_network
networks:
nginx_network:
external: true