-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
65 lines (64 loc) · 1.27 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.7"
services:
api-db:
image: postgres:latest
restart: always
environment:
- POSTGRES_USER=api_user
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=api_db
ports:
- '5434:5432'
volumes:
- api-db:/var/lib/postgresql/data
networks:
backend:
aliases:
- api-db
api:
build:
context: .
dockerfile: "build/ci/docker/api/Dockerfile"
args:
ENV_FILE: ./.env.dc
container_name: api
ports:
- "9450:9450"
environment:
API_PORT: "9450"
DATABASE_URL: "postgres://pg_user:postgres@api-db:5432/db?sslmode=disable"
REDIS_URL: "redis://redis:@redis-store:6379"
STAGE: "DEBUG"
env_file:
- .env
depends_on:
- api-db
- redis-store
links:
- api-db
- redis-store
networks:
backend:
aliases:
- api
redis-store:
image: redis:alpine
volumes:
- ./build/config/redis.conf:/redis.conf
command: [ "redis-server", "/redis.conf" ]
ports:
- "6377:6379"
networks:
backend:
aliases:
- redis-store
networks:
backend:
name: "api-be-network"
volumes:
api-db:
driver: local
first-tenant:
driver: local
second-tenant:
driver: local