-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
48 lines (44 loc) · 1.08 KB
/
docker-compose.yaml
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
version: '3'
services:
postgres:
restart: always
image: postgres:latest
container_name: diia_db
environment:
POSTGRES_PASSWORD: password
POSTGRES_USER: admin
POSTGRES_DB: diia_db
POSTGRES_INITDB_ARGS: --data-checksums --auth-local trust
PGDATA: /var/lib/postgresql/data/pgdata
# env_file: .env
ports:
- "5432:5432"
volumes:
- "docker-db-volume:/var/lib/postgresql/data"
networks:
- aiohttp
diia_auth_server:
restart: always
build:
context: .
ports:
- "9999:9999"
# env_file: .env
environment:
DB_HOST: postgres
DB_PORT: 5432
DB_NAME: postgres
DB_USER: postgres
DB_SCHEMA: public
DB_PASSWORD: password
depends_on:
- postgres
links:
- postgres
networks:
- aiohttp
volumes:
docker-db-volume:
driver: local
networks:
aiohttp: