forked from fictadvisor/fictadvisor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
124 lines (114 loc) · 2.68 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
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
version: '3'
networks:
fictadvisor:
external: true
fictadvisor-dev:
external: true
services:
fictadvisor-api-dev:
image: fictadvisor/fictadvisor-api:dev
container_name: fictadvisor-api-dev
restart: unless-stopped
volumes:
- ~/static/fictadvisor-api-dev:/app/static
- ~/private:/app/private
depends_on:
- postgres-db-dev
- watchtower
networks:
- fictadvisor-dev
ports:
- "4001:80"
env_file:
- ~/deployment/env/fictadvisor-api-dev.env
fictadvisor-api:
image: fictadvisor/fictadvisor-api:master
container_name: fictadvisor-api
restart: unless-stopped
volumes:
- ~/static/fictadvisor-api:/app/static
- ~/private:/app/private
depends_on:
- postgres-db
- watchtower
networks:
- fictadvisor
ports:
- "3001:80"
env_file:
- ~/deployment/env/fictadvisor-api.env
fictadvisor-web-dev:
image: fictadvisor/fictadvisor-web:dev
container_name: fictadvisor-web-dev
restart: unless-stopped
depends_on:
- fictadvisor-api-dev
networks:
- fictadvisor-dev
ports:
- "4000:80"
fictadvisor-web:
image: fictadvisor/fictadvisor-web:master
container_name: fictadvisor-web
restart: unless-stopped
depends_on:
- fictadvisor-api
networks:
- fictadvisor
ports:
- "3000:80"
fictadvisor-bot-dev:
image: fictadvisor/fictadvisor-bot:dev
container_name: fictadvisor-bot-dev
restart: unless-stopped
depends_on:
- fictadvisor-api-dev
networks:
- fictadvisor-dev
ports:
- "4002:8000"
env_file:
- ~/deployment/env/fictadvisor-bot-dev.env
fictadvisor-bot:
image: fictadvisor/fictadvisor-bot:master
container_name: fictadvisor-bot
restart: unless-stopped
depends_on:
- fictadvisor-api
networks:
- fictadvisor
ports:
- "3002:8000"
env_file:
- ~/deployment/env/fictadvisor-bot.env
postgres-db-dev:
image: postgres:15
container_name: postgres-db-dev
volumes:
- ~/deployment/development/postgres-db/data:/var/lib/postgresql/data
ports:
- "4003:5432"
networks:
- fictadvisor-dev
env_file:
- ~/deployment/env/postgres-dev.env
postgres-db:
image: postgres:15
container_name: postgres-db
volumes:
- ~/postgres/data:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
- fictadvisor
env_file:
- ~/deployment/env/postgres.env
watchtower:
image: containrrr/watchtower
container_name: watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command:
- "--cleanup"
- "-i"
- "60"