-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
50 lines (46 loc) · 1000 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
42
43
44
45
46
47
48
49
50
version: "3.8"
services:
app:
build:
context: ./
dockerfile: ./dev.Dockerfile
image: lukuvinkkikirjasto-dev
container_name: lukuvinkkikirjasto-dev
depends_on:
- db
ports:
- 5000:5000
env_file:
- ./.env
volumes:
- ./:/usr/src/lukuvinkkikirjasto
db:
build:
context: ./
dockerfile: ./db.Dockerfile
container_name: lukuvinkkikirjasto-db
volumes:
- postgres-data:/var/lib/postgresql/data/
env_file:
- ./.env
test:
build:
context: ./
dockerfile: ./devrobot.Dockerfile
network_mode: host
container_name: lukuvinkkikirjasto-test
depends_on:
- app
profiles:
- test
image: robot
shm_size: "256M"
environment:
USERNAME: Test
volumes: [
"$PWD/src/tests:/src/tests",
"$PWD/scripts:/scripts",
"$PWD/documentation/test_reports/robot:/documentation/test_reports/robot"
]
volumes:
postgres-data: