-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
80 lines (74 loc) · 1.66 KB
/
docker-compose.prod.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
version: "3.8"
services:
discord-bot-prod:
container_name: wormhole-bot-prod
build:
context: .
dockerfile: Dockerfile
image: wormhole-bot:prod
volumes:
- .:/app
- $HOME/Wormhole:/opt/wormhole/prod
env_file:
- .env
networks:
- wormhole-network-prod
ports:
- "5678:5679"
depends_on:
- postgres-prod
- redis-prod
restart: always
command: ["python", "run_discord.py"]
postgres-prod:
image: postgres:latest
container_name: wormhole-postgres-prod
env_file:
- .env
volumes:
- $HOME/Wormhole/database/postgres:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- wormhole-network-prod
ports:
- "5434:5432"
ssh-chat-prod:
container_name: ssh-chat-prod
env_file:
- .env
build:
dockerfile: ./docker/ssh-chat/Dockerfile.prod.yml
context: .
ports:
- "2023:2022"
restart: unless-stopped
volumes:
- $HOME/Wormhole:/opt/wormhole/prod
networks:
- wormhole-network-prod
depends_on:
- redis-prod
command: ["/usr/local/bin/ssh-chat", "-i", "/root/.ssh/id_ed25519_ssh_chat"]
redis-prod:
image: redis:latest
env_file:
- .env
container_name: wormhole-redis-prod
ports:
- "6381:6381"
command: ["redis-server", "--port", "6381"]
volumes:
- $HOME/Wormhole/redis:/data
networks:
- wormhole-network-prod
restart: always
networks:
wormhole-network-prod:
driver: bridge
volumes:
wormhole-data-prod:
driver: local
driver_opts:
type: none
o: bind
device: $HOME/Wormhole/