-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.yml
49 lines (41 loc) · 1.07 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
version: '3.6'
services:
server:
# container_name: flask-api
build :
context: ./src/server
dockerfile: Dockerfile
command: python manage.py run -h 0.0.0.0
volumes:
- './src/server:/usr/src/app'
- './models/joeynmt:/usr/src/app/models/joeynmt'
ports:
- 5000:5000
env_file:
- ./src/server/.env.dev
depends_on:
- db
db:
image: postgres:12-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=masakhane
- POSTGRES_PASSWORD=masakhane
- POSTGRES_DB=masakhane
client:
build :
context: ./src/client
dockerfile: Dockerfile
# command: curl --location --request GET 'http://0.0.0.0:5000/update' --data-raw ''
volumes:
- './src/client:/usr/src/app'
ports:
- 3000:3000
depends_on:
- server
# To persist the data beyond the life of the container
# we configured a volume. This config will bind
# postgres_data to the "/var/lib/postgresql/data/" directory in the container.
volumes:
postgres_data: