-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
86 lines (73 loc) · 1.56 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
version: '3'
services:
postgres:
build: docker/postgres
environment:
POSTGRES_DB: tweemote
POSTGRES_PASSWORD: w0ntt3lly0u
volumes:
- postgres:/var/lib/postgresql/data
ports:
- "5432:5432"
rabbitmq:
build: docker/rabbitmq
environment:
RABBITMQ_DEFAULT_VHOST: tweemote
RABBITMQ_DEFAULT_USER: tweemote
RABBITMQ_DEFAULT_PASS: w0ntt3lly0u
volumes:
- rabbitmq:/var/lib/rabbitmq
ports:
- "5672:5672"
- "15672:15672"
nginx:
build: docker/nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./docker/nginx/ssl/lvh.me.key:/etc/nginx/ssl/host.key
- ./docker/nginx/ssl/lvh.me.crt:/etc/nginx/ssl/host.crt
depends_on:
- server
- frontend
frontend:
build: ./frontend
ingest: &app
build: ./backend
env_file: ./docker/env
environment:
LOGDB: 1
# DEBUG: 1
command: ["tweemote", "ingest"]
depends_on:
- postgres
- rabbitmq
restart: on-failure:3
console:
<<: *app
build:
context: ./backend
dockerfile: Dockerfile.console
command: ["/bin/bash"]
persist:
<<: *app
command: ["tweemote", "persist"]
impress:
<<: *app
command: ["tweemote", "impress"]
process_user_queues:
<<: *app
command: ["tweemote", "process_user_queues"]
act:
<<: *app
command: ["tweemote", "act"]
stats:
<<: *app
command: ["tweemote", "stats", "-period-seconds", "3600"]
server:
<<: *app
command: ["tweemote", "server"]
volumes:
postgres:
rabbitmq: