-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (41 loc) · 1.13 KB
/
docker-compose.yml
File metadata and controls
43 lines (41 loc) · 1.13 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
version: "3.1"
volumes:
postgres:
external: true
services:
postgres:
image: postgres:alpine
volumes:
- postgres:/var/lib/postgresql/data
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
ports:
- "5432:5432"
go_api:
build:
context: .
dockerfile: Dockerfile
working_dir: /go/src/github.com/sixilli/TekkenHub
volumes:
- ./go-backend:/go/src/github.com/sixilli/TekkenHub
- ./go-backend/api:/go/src/github.com/sixilli/TekkenHub/api
- ./go-backend/storage:/go/src/github.com/sixilli/TekkenHub/storage
ports:
- "12082:12082"
environment:
- PORT=12082
depends_on:
- postgres
elixir_api:
build:
context: ./ex-backend
dockerfile: Dockerfile
working_dir: /elixir/src
volumes:
- ./ex-backend/src:/elixir/src
ports:
- "12082:12082"
depends_on:
- postgres