forked from saajnn/hipy-server
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
72 lines (71 loc) · 1.44 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
70
71
72
networks:
hipy-network:
name: hipy-network
driver: bridge
ipam:
driver: default
config:
- gateway: 172.23.0.1
subnet: 172.23.0.0/24
driver_opts:
com.docker.network.bridge.name: hipy-network
services:
redis:
container_name: hipy-redis
restart: always
image: redis:latest
command: redis-server --requirepass hipy
volumes:
- /hipy/redis_data/:/data/
ports:
- "6379:6379"
expose:
- 6379
networks:
hipy-network:
ipv4_address: 172.23.0.5
postgres:
container_name: hipy-pg
restart: always
image: postgres:latest
environment:
- POSTGRES_USER=hipy
- POSTGRES_PASSWORD=hipy
- POSTGRES_DB=hipy
volumes:
- /hipy/postgres/data:/var/lib/postgresql/data
ports:
- "5432:5432"
expose:
- 5432
networks:
hipy-network:
ipv4_address: 172.23.0.4
command: [postgres, -c, max_connections=200]
fastapi:
container_name: hipy-fastapi
image: hipy-server:20240106
restart: always
depends_on:
- postgres
- redis
ports:
- "5707:5707"
expose:
- 5707
networks:
hipy-network:
ipv4_address: 172.23.0.3
vue:
container_name: hipy-vue
image: hipy-vue:4.3.0
restart: always
depends_on:
- fastapi
ports:
- "80:80"
expose:
- 80
networks:
hipy-network:
ipv4_address: 172.23.0.2