-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (56 loc) · 1.11 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
name: central
networks:
default:
name: central
services:
auth-webserver:
build:
context: .
dockerfile: auth.Dockerfile
restart: always
env_file:
- ./auth/.env
volumes:
- ./auth:/app/auth
- ./internal:/app/internal
ports:
- 5000:5000
command: air
depends_on:
- database
campaigns-webserver:
build:
context: .
dockerfile: campaigns.Dockerfile
restart: always
env_file:
- ./campaigns/.env
volumes:
- ./campaigns:/app/campaigns
- ./internal:/app/internal
ports:
- 5001:5001
command: air
depends_on:
- database
database:
image: postgres:latest
restart: always
environment:
POSTGRES_USER: genos
POSTGRES_PASSWORD: genos
POSTGRES_MULTIPLE_DATABASES: auth,campaigns
ports:
- 5432:5432
volumes:
- ./data/postgresDb:/var/lib/postgresql/data
- ./pg-init-scripts:/docker-entrypoint-initdb.d
depends_on:
- redis
redis:
image: redis:latest
restart: always
volumes:
- ./data:/data
ports:
- 6379:6379