-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
59 lines (54 loc) · 1.13 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
version: "3"
services:
nginx:
build:
context: ./docker/nginx
dockerfile: Dockerfile
depends_on:
- php
- nodejs
volumes:
- ./backend:/var/www/backend:delegated
- ./frontend:/var/www/frontend:delegated
ports:
- "80:80"
networks:
- hd-internal
php:
build:
context: ./docker/php
dockerfile: Dockerfile
depends_on:
- postgres
volumes:
- ./backend:/var/www/backend:delegated
ports:
- "9001:9001"
networks:
- hd-internal
user: "1000"
nodejs:
build:
context: ./docker/nodejs
dockerfile: Dockerfile
volumes:
- ./frontend:/var/www/frontend:delegated
ports:
- "4200:4200"
networks:
- hd-internal
user: "1000"
postgres:
build:
context: ./docker/postgres
dockerfile: Dockerfile
restart: always
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: root
networks:
- hd-internal
networks:
hd-internal:
name: hd-internal