-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
89 lines (81 loc) · 1.95 KB
/
docker-compose-dev.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
version: '3.1'
services:
api:
networks:
- postgres
- redis
env_file:
- .env
environment:
- NEST_APP_TYPE=api
- DATABASE_HOST=postgres
- DATABASE_PORT=5432
- REDIS_CONNECTION_STRING=redis://@redis:6379
build:
context: .
args:
- APP_NAME=api
aggregator:
networks:
- postgres
- redis
env_file:
- .env
environment:
- NEST_APP_TYPE=aggregator
- DATABASE_HOST=postgres
- DATABASE_PORT=5432
- REDIS_CONNECTION_STRING=redis://@redis:6379
- AGGREGATOR_CONFIG=aW5kZXhlcjoNCiAgZGI6DQogICAgaG9zdDogJzEwNC4xOTkuODkuNTEnDQogICAgcG9ydDogJzU0MzInDQogICAgZGF0YWJhc2U6ICdtYWlubmV0X2V4cGxvcmVyJw0KICAgIHVzZXJuYW1lOiAncHVibGljX3JlYWRvbmx5Jw0KICAgIHBhc3N3b3JkOiAnbmVhcnByb3RvY29sJw0KDQpuZWFyOg0KICBlbnY6IG1haW5uZXQNCiAgY3JlZGVudGlhbHM6ICcubmVhci1jcmVkZW50aWFscycNCg0KZGFvOg0KICBjb250cmFjdE5hbWU6ICdzcHV0bmlrLWRhby5uZWFyJw0KICB0b2tlbkZhY3RvcnlDb250cmFjdE5hbWU6ICd0a24ubmVhcicNCiAgYnJpZGdlVG9rZW5GYWN0b3J5Q29udHJhY3ROYW1lOiAnZmFjdG9yeS5icmlkZ2UubmVhcicNCg==
build:
context: .
args:
- APP_NAME=aggregator
postgres:
image: postgres
restart: always
ports:
- '5437:5432'
volumes:
- pg-data:/data/postgres
env_file:
- .env.docker-dev
networks:
- postgres
pgadmin:
links:
- postgres:postgres
image: dpage/pgadmin4
ports:
- '8080:80'
volumes:
- pg-data:/root/.pgadmin
env_file:
- .env.docker-dev
networks:
- postgres
redis:
image: 'redis:alpine'
env_file:
- .env.docker-dev
ports:
- '6379:6379'
networks:
- redis
redis-commander:
image: rediscommander/redis-commander:latest
environment:
- REDIS_HOSTS=local:redis:6379
ports:
- '8081:8081'
depends_on:
- redis
networks:
- redis
volumes:
pg-data:
networks:
postgres:
driver: bridge
redis:
driver: bridge