-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (51 loc) · 1.05 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
version: "3.9"
networks:
internal:
driver: bridge
services:
postgres:
image: postgres:alpine
restart: always
volumes:
- ./db-init/database/postgres/:/docker-entrypoint-initdb.d/
environment:
- POSTGRES_DB=cert_db
- POSTGRES_USER=cert
- POSTGRES_PASSWORD=qwerty
networks:
- internal
ports:
- "5432:5432"
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U cert -d cert_db" ]
interval: 10s
timeout: 5s
retries: 5
adminer:
image: adminer
restart: always
ports:
- "8080:8080"
cache:
image: redis:6.2-alpine
restart: always
networks:
- internal
ports:
- "6379:6379"
command: redis-server --save 20 1 --loglevel warning --requirepass eYVX7EwVmmxKPCDmwMtyKVge8oLd2t81
app:
build:
context: ./build
dockerfile: Dockerfile
restart: always
ports:
- "8000:8000"
environment:
- DB_HOST=postgres
- REDIS_HOST=cache
networks:
- internal
depends_on:
- postgres
- cache