generated from didinele/typescript-docker-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
138 lines (126 loc) · 3.42 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
name: chatsift-next
services:
# TODO: Publish own image?
# TODO: Uncomment once this repo takes over the stack deployment, for now, we're hacking ChatSift/stack to share
# its caddy instance
# caddy:
# build:
# context: ./build/caddy
# dockerfile: ./Dockerfile
# env_file:
# - ./.env.private
# ports:
# - '80:80'
# - '443:443'
postgres:
image: postgres:12-alpine
environment:
POSTGRES_USER: 'chatsift'
POSTGRES_PASSWORD: 'admin'
POSTGRES_DB: 'chatsift'
volumes:
- postgres-data:/var/lib/postgresql/data
restart: unless-stopped
env_file:
- ./.env.public
- ./.env.private
ports:
- 127.0.0.1:${LOCAL_DATABASE_PORT}:5432
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U chatsift']
interval: 10s
timeout: 5s
dozzle:
image: amir20/dozzle:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
restart: unless-stopped
environment:
DOZZLE_ENABLE_ACTIONS: true
ports:
- 127.0.0.1:${LOCAL_DOZZLE_PORT}:8080
redis:
image: redis:6-alpine
restart: unless-stopped
healthcheck:
test: ['CMD-SHELL', 'redis-cli ping']
interval: 10s
timeout: 5s
api:
image: chatsift/chatsift-next:api
build:
context: ./
dockerfile: ./Dockerfile
restart: unless-stopped
env_file:
- ./.env.public
- ./.env.private
command: ['node', '--enable-source-maps', './services/api/dist/index.js']
ports:
- 127.0.0.1:${API_PORT}:${API_PORT}
volumes:
- ./logs-archive:/var/chatsift-logs
automoderator-proxy:
image: chatsift/chatsift-next:automoderator-discord-proxy
build:
context: ./
dockerfile: ./Dockerfile
restart: unless-stopped
env_file:
- ./.env.public
- ./.env.private
environment:
BOT: automoderator
command: ['node', '--enable-source-maps', './services/automoderator/discord-proxy/dist/index.js']
volumes:
- ./logs-archive:/var/chatsift-logs
automoderator-gateway:
image: chatsift/chatsift-next:automoderator-gateway
build:
context: ./
dockerfile: ./Dockerfile
restart: unless-stopped
env_file:
- ./.env.public
- ./.env.private
environment:
BOT: automoderator
command: ['node', '--enable-source-maps', './services/automoderator/gateway/dist/index.js']
volumes:
- ./logs-archive:/var/chatsift-logs
automoderator-interactions:
image: chatsift/chatsift-next:automoderator-interactions
build:
context: ./
dockerfile: ./Dockerfile
restart: unless-stopped
env_file:
- ./.env.public
- ./.env.private
environment:
BOT: automoderator
command: ['node', '--enable-source-maps', './services/automoderator/interactions/dist/index.js']
volumes:
- ./logs-archive:/var/chatsift-logs
automoderator-observer:
image: chatsift/chatsift-next:automoderator-observer
build:
context: ./
dockerfile: ./Dockerfile
restart: unless-stopped
env_file:
- ./.env.public
- ./.env.private
environment:
BOT: automoderator
command: ['node', '--enable-source-maps', './services/automoderator/observer/dist/index.js']
volumes:
- ./logs-archive:/var/chatsift-logs
volumes:
postgres-data:
name: 'chatsift-next-postgres-data'
# Hack to work with chatsift/stack
networks:
default:
name: chatsift
external: true