-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.test.yml
49 lines (44 loc) · 1.02 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
version: '3.7'
services:
web_test:
build: .
volumes:
- type: volume
source: ym_persistent_test
target: /home/srx-yamlr
- type: volume
source: static_data_test
target: /var/www/srx-yamlr/static/
networks:
- nginx_network_test
expose:
- "8000"
environment:
- GIT_TOKEN
command: >
sh -c "python manage.py migrate &&
python manage.py collectstatic --noinput &&
gunicorn --bind :8000 project.wsgi:application"
nginx_test:
image: nginx:1.17.2-alpine
ports:
- "8002:8002"
volumes:
- ./config/nginx_test:/etc/nginx/conf.d/default.conf
- type: volume
source: static_data_test
target: /var/www/srx-yamlr/static/
networks:
- nginx_network_test
selenium_chrome:
image: selenium/standalone-chrome
ports:
- "5900:5900"
networks:
- nginx_network_test
networks:
nginx_network_test:
driver: bridge
volumes:
ym_persistent_test:
static_data_test: