-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (49 loc) · 1.01 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
version: '3'
services:
web:
container_name: web
build:
context: .
dockerfile: web.dockerfile
depends_on:
- api
tty: true
volumes:
- ./web:/app
api:
container_name: api
build:
context: .
dockerfile: api.dockerfile
args:
- POSTGRES_DB=$POSTGRES_DB
- POSTGRES_USER=$POSTGRES_USER
- POSTGRES_PASSWORD=$POSTGRES_PASSWORD
- POSTGRES_PORT=$POSTGRES_PORT
depends_on:
- db
tty: true
volumes:
- ./api:/go/app
db:
container_name: db
build:
context: .
dockerfile: db.dockerfile
args:
- POSTGRES_DB=$POSTGRES_DB
- POSTGRES_USER=$POSTGRES_USER
- POSTGRES_PASSWORD=$POSTGRES_PASSWORD
volumes:
- ./db/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
proxy:
container_name: proxy
build:
context: .
dockerfile: proxy.dockerfile
ports:
- $PROXY_PORT:$PROXY_PORT
depends_on:
- web
volumes:
- ./proxy:/app