-
Notifications
You must be signed in to change notification settings - Fork 215
/
docker-compose.yml
61 lines (57 loc) · 1.53 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
version: '3.7'
services:
# Blog Controller
service-uc-controller-blog:
container_name: uc-controller-blog
image: testing_uc_controller_blog:latest
build:
context: .
dockerfile: uc-controller-blog/docker/Dockerfile
target: development
args:
NODE_ENV: dev
ports:
- "3007:3007"
- "4007:4007"
networks:
uc_network:
env_file:
- .env/blog.env
- .env/db.env
volumes:
- ./uc-controller-blog/controller-blog:/home/uc_user/controller-blog
- /home/uc_user/controller-blog/node_modules/
command: npm run start:debug
# postgresql
service-uc-postgres:
container_name: uc-workshop-postgres
image: postgres:14
networks:
uc_network:
ipv4_address: 30.7.1.201
env_file:
- .env/db.env
ports:
- 5438:5432
volumes:
- ucWorkshopPgData:/var/lib/postgresql/data
# pgadmin
service-uc-pgadmin:
container_name: uc-workshop-pgadmin
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: root
ports:
- 5050:80
networks:
uc_network:
networks:
uc_network:
driver: bridge
ipam:
driver: default
config:
- subnet: 30.7.0.0/16
volumes:
ucWorkshopPgData: