-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
71 lines (66 loc) · 1.18 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
71 lines (66 loc) · 1.18 KB
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
services:
bd:
build: ./db
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
expose:
- 5432
networks:
- backnet
nginx:
image: nginx:latest
ports:
- 80:80
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ./web/public/images:/img
networks:
- frontnet
- backnet
depends_on:
- web
- api
web:
image: node:lts
restart: unless-stopped
depends_on:
- bd
ports:
- 3000:3000
networks:
- backnet
volumes:
- ./web:/app
working_dir: /app
command: bash -c "npm install && npm run dev"
api:
build: ./api
restart: unless-stopped
depends_on:
- bd
expose:
- 80
networks:
- backnet
volumes:
- ./api:/var/www/html
- ./web/public/images:/img
pgadmin:
restart: unless-stopped
image: dpage/pgadmin4
expose:
- 80
- 443
depends_on:
- bd
networks:
- backnet
environment:
PGADMIN_DEFAULT_EMAIL: example@example.com
PGADMIN_DEFAULT_PASSWORD: password
networks:
frontnet:
driver: bridge
backnet: