-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
69 lines (64 loc) · 1.4 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
66
67
68
69
version: "3.9"
services:
findcare:
container_name: FindCare
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "3000:3000"
depends_on:
- postgres
- findcare-api
findcare-api:
container_name: FindCare-API
restart: always
build:
context: ./backend
dockerfile: Dockerfile
command: uvicorn app.main:app --proxy-headers --host 0.0.0.0 --port 8009 --forwarded-allow-ips '*' --log-level debug
ports:
- 8009:8009
depends_on:
- postgres
networks:
- app_net
postgres:
image: postgres:latest
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- TZ=Asia/Kolkata
- POSTGRES_PASSWORD=ryuk
- POSTGRES_DB=findcare
expose:
- 5432
networks:
app_net:
ipv4_address: 192.168.0.2
pgadmin:
container_name: pgadmin_container
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: ryuk@ryuk.com
PGADMIN_DEFAULT_PASSWORD: ryuk
PGADMIN_CONFIG_SERVER_MODE: 'True'
PGADMIN_LISTEN_PORT: 80
volumes:
- pgadmin:/var/lib/pgadmin
ports:
- "5050:80"
networks:
app_net:
ipv4_address: 192.168.0.3
restart: unless-stopped
networks:
app_net:
ipam:
driver: default
config:
- subnet: "192.168.0.0/24"
gateway: 192.168.0.1
volumes:
postgres_data:
pgadmin: