-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (52 loc) · 1.12 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
version: "3.8"
x-common: &x-common
POSTGRES_HOST: "postgres"
POSTGRES_USERNAME: "postgres"
POSTGRES_PASSWORD: "root"
services:
postgres:
image: postgres:latest
networks:
lhp:
environment:
POSTGRES_PASSWORD: "root"
pgadmin:
image: dpage/pgadmin4:latest
user: root
ports:
- "5532:80"
networks:
lhp:
environment:
"PGADMIN_DEFAULT_EMAIL": "[email protected]"
"PGADMIN_DEFAULT_PASSWORD": "dev"
lhp-backend:
restart: on-failure
depends_on:
- postgres
build:
context: ./
dockerfile: Backend/Dockerfile
networks:
lhp:
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
<<: *x-common
Postgres: "User ID=postgres;Password=root;Host=postgres;Port=5432;Database=lhp"
PF_ADDRESS: "https://10.0.0.1/"
PF_CID: "61646d696e"
PF_TOKEN: "cf17a6e9a0db2da4a970e3301b555c8e"
lhp-frontend:
restart: on-failure
depends_on:
- lhp-backend
build:
context: ./client
dockerfile: Dockerfile
networks:
lhp:
ports:
- 180:80
networks:
lhp: