-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
51 lines (49 loc) · 1.03 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
version: '3'
volumes:
wiki-db:
driver: local
api-target:
driver: local
front-target:
driver: local
services:
db:
image: postgres
volumes:
- wiki-db:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: pgpass
h2o:
image: lkwg82/h2o-http2-server
ports:
- "8083:80"
volumes:
- ./containers/dev/h2o:/etc/h2o
api:
build:
dockerfile: ../containers/dev/api/Dockerfile
context: ./api
ports:
- "7878:7878"
environment:
DATABASE_URL: "postgres://postgres:pgpass@db/rusty_wiki"
MANUAL: $MANUAL
volumes:
- ./api:/usr/src/app
- api-target:/usr/src/app/target
command: bin/start.sh
front:
build:
dockerfile: ../containers/dev/front/Dockerfile
context: ./front
environment:
API_HOSTNAME: "127.0.0.1:8083"
MANUAL: $MANUAL
ports:
- "8000:8000"
volumes:
- ./front:/usr/src/app
- front-target:/usr/src/app/target
command: bin/start.sh