-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
67 lines (59 loc) · 1.04 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
version: '3'
services:
postgres:
build:
context: .
dockerfile: ./pg.dockerfile
restart: always
hostname: postgres
environment:
POSTGRES_PASSWORD: password
POSTGRES_USER: user
POSTGRES_DB: HomeAuto
ports:
- '5438:5432'
volumes:
- ./db/data:/var/lib/postgresql/data
networks:
- local
goapp:
build:
context: .
dockerfile: ./dev.dockerfile
restart: always
ports:
- 8080:8080
depends_on:
- postgres
volumes:
- ./:/app
networks:
- local
frontend:
build:
context: ./frontend/
restart: always
ports:
- 5001:5000
volumes:
- ./frontend/src/:/usr/app/src
networks:
- local
nginx:
build:
context: ./nginx
dockerfile: ./Dockerfile
restart: always
depends_on:
- goapp
- frontend
ports:
- 8000:8000
volumes:
- ./nginx:/etc/nginx
#network_mode: host
networks:
- local
networks:
local:
driver: bridge