-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
78 lines (73 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
version: '3.3'
services:
proxy:
image: jwilder/nginx-proxy:alpine
container_name: cn-squad6-proxy
ports:
- 80:80
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
networks:
backend:
ipv4_address: 10.15.0.2
db:
image: postgres:11-alpine
container_name: cn-squad6-db
ports:
- 5432:5432
environment:
POSTGRES_DB: buati_dev
POSTGRES_USER: buati_user
POSTGRES_PASSWORD: secret
networks:
backend:
ipv4_address: 10.15.0.3
api:
build:
context: .docker/api
container_name: cn-squad6-api
ports:
- 4000:4000
expose:
- 4000
volumes:
- ./backend:/go/src/github.com/codenation-dev/squad-6-aceleradev-fs-online-1/backend
working_dir: /go/src/github.com/codenation-dev/squad-6-aceleradev-fs-online-1/backend
environment:
- VIRTUAL_HOST=api.buati.local
networks:
backend:
ipv4_address: 10.15.0.4
tty: true
stdin_open: true
depends_on:
- db
client:
build:
context: .docker/client
container_name: cn-squad6-client
ports:
- 3000:3000
expose:
- 3000
volumes:
- ./frontend:/usr/src/app
working_dir: /usr/src/app
environment:
- VIRTUAL_HOST=buati.local
networks:
frontend:
backend:
ipv4_address: 10.15.0.5
tty: true
stdin_open: true
depends_on:
- api
networks:
frontend:
driver: bridge
backend:
driver: bridge
ipam:
config:
- subnet: 10.15.0.0/28