/
docker-compose.yml
65 lines (61 loc) · 1.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
version: "3"
services:
rabbit:
image: rabbitmq:3-management-alpine
environment:
RABBITMQ_DEFAULT_USER: rabbitmq
RABBITMQ_DEFAULT_PASS: rabbitmq
ports:
- "15672:15672"
- "5672:5672"
db:
image: postgres:13.2
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_PORT: 5432
POSTGRES_HOST: db
POSTGRES_DB: chatroom
ports:
- 5432:5432
restart: on-failure
bot:
build:
context: .
dockerfile: Dockerfile.bot
environment:
PORT: 8100
LOG_LEVEL: debug
RABBITMQ_CONNECTION: amqp://rabbitmq:rabbitmq@rabbit:5672/
ports:
- "8100:8100"
# Developing on Windows - there's a bug with WSL so volumes don't work
# volumes:
# - .:/app
depends_on:
- rabbit
restart: on-failure
app:
build:
context: .
dockerfile: Dockerfile.app
environment:
PORT: 8080
LOG_LEVEL: debug
RABBITMQ_CONNECTION: amqp://rabbitmq:rabbitmq@rabbit:5672/
STATIC_FILES: ./app/public
JWT_SECRET: dxNtgxk3DYlGau3TyzY8
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_PORT: 5432
POSTGRES_HOST: db
POSTGRES_DB: chatroom
ports:
- "8080:8080"
# Developing on Windows - there's a bug with WSL so volumes don't work
# volumes:
# - .:/app
depends_on:
- rabbit
- db
restart: on-failure