-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (54 loc) · 1.27 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
50
51
52
53
54
55
56
57
version: '3'
services:
db:
container_name: postgres
image: "postgres:11.1"
env_file:
- services_config/postgres_config/env_file
networks:
- db_nw
pyramid_app:
# build: .
# stdin_open: true
# tty: true
image: image_from_dockerfile
env_file:
- services_config/postgres_config/env_file
volumes:
- ./volumes/testsite:/app/testsite
# - ./logs:/var/log
# - ./config:/etc/appconfig
image: image_from_dockerfile
working_dir: /app
expose:
- 8000
command: /app/venv/bin/pserve /app/testsite_config/development.ini --reload
# command: >
# sh -c "virtualenv /app/venv &&
# /app/venv/bin/pip install -r /app/testsite_config/requirements.pip &&
# /app/venv/bin/pip install -e '.[testing]' &&
# /app/venv/bin/pserve /app/testsite_config/development.ini --reload"
# /app/venv/bin/pserve /app/testsite_config/development.ini --reload
networks:
- db_nw
- web_nw
depends_on:
- db
nginx:
image: nginx:1.13.5
ports:
- "8000:80"
volumes:
- ./volumes/conf.d:/etc/nginx/conf.d
networks:
- web_nw
depends_on:
- pyramid_app
networks:
db_nw:
driver: bridge
web_nw:
driver: bridge
volumes:
conf.d:
src: