-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
45 lines (40 loc) · 878 Bytes
/
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
version: "3"
services:
web:
build: .
command: bash -c "python manage.py runserver 0.0.0.0:8080"
container_name: E_WalletZ_API
restart: always
volumes:
- .:/E_WalletZ
ports:
- "8080:8080"
depends_on:
postgres:
condition: service_healthy
networks:
- E_WalletZ_net
postgres:
container_name: E_WalletZ_DB
image: postgres
restart: always
environment:
POSTGRES_USER: 'E_WalletZ_user'
POSTGRES_PASSWORD: 'E_WalletZ_password'
PGDATE: /data/E_WalletZ_postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -U E_WalletZ_user"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- postgres:/data/E_WalletZ_postgres
ports:
- '5432:5432'
networks:
- E_WalletZ_net
networks:
E_WalletZ_net:
driver: bridge
volumes:
postgres: