-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.test.yml
54 lines (50 loc) · 1 KB
/
docker-compose.test.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
52
53
54
version: '3.7'
services:
web:
build:
context: ./services/web
dockerfile: Dockerfile
command: bash -c "
flake8 --tee --output-file=codestyle.log .
&& pytest ./tmtar -v --junitxml=report.xml"
volumes:
- ./services/web/:/usr/src/app/
- ./.flake8:/usr/src/app/.flake8
ports:
- 5000:5000
env_file:
- ./env/.env
- ./env/.env.dev
networks:
- api
db:
image: crunchydata/crunchy-postgres-gis:centos8-13.3-3.1-4.6.3
hostname: db
ports:
- 5432:5432
volumes:
- ./configs:/pgconf
- db-pgdata:/pgdata
- db-wal:/pgwal
- db-backup:/backrestrepo
env_file:
- env/.env.db
networks:
- api
admin:
container_name: admin_panel
command: npm test
build:
context: ./services/frontend
dockerfile: Dockerfile
volumes:
- ./services/frontend:/app
- /app/node_modules
ports:
- 9876:9876
networks:
api:
volumes:
db-pgdata:
db-wal:
db-backup: