forked from TonyNiTN/group-24-ECE461
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
41 lines (36 loc) · 942 Bytes
/
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
version: '3.1'
services:
# db:
# image: postgres
# environment:
# POSTGRES_USER: john
# POSTGRES_PASSWORD: mysecretpassword
# expose:
# - 5432
delete_write_app:
build: delete_write_apis/
image: delete_write_img
command: flask --app src run -p 8080
environment:
APP_DB_HOST: db
APP_DB_USER: john
APP_DB_PASSWORD: mysecretpassword
expose:
- 8080
# depends_on:
# - db
# -wait tcp://db:5432 -wait tcp://myapp:8000 -timeout 10s
delete_write_apis-tests:
image: delete_write_img
command: dockerize
-wait tcp://delete_write_app:8000 -timeout 10s
bash -c "node db/init.js && yarn test"
environment:
APP_URL: http://myapp:8000
APP_DB_HOST: db
APP_DB_USER: john
APP_DB_PASSWORD: mysecretpassword
# depends_on:
# - db
# - myapp
# run with: docker-compose up --build --abort-on-container-exit