-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (56 loc) · 1.2 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
services:
app:
build:
context: ./app
dockerfile: Dockerfile
env_file:
- .env
ports:
- '3000:3000'
depends_on:
redis:
condition: service_healthy
postgres:
condition: service_healthy
volumes:
- ./app:/usr/src/app
restart: always
postgres:
image: postgres:latest
env_file:
- .env
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d billing_dev"]
interval: 10s
timeout: 5s
retries: 5
ports:
- '5454:5432'
volumes:
- billing_dev_postgres_data:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
pgadmin:
image: dpage/pgadmin4
ports:
- '5422:80'
env_file:
- .env
volumes:
- billing_dev_pgadmin_data:/var/lib/pgadmin
- ./config_local.py:/pgadmin4/config_local.py
depends_on:
postgres:
condition: service_healthy
redis:
image: redis:6-alpine
container_name: redis
ports:
- '6363:6379'
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
volumes:
billing_dev_postgres_data:
billing_dev_pgadmin_data: