-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (53 loc) · 1.05 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
58
version: '3'
services:
redis:
image: 'redis:5.0-alpine'
command: redis-server --requirepass devpassword
volumes:
- './volumes/redis:/data'
ports:
- '6379:6379'
networks:
- redis_nw
db:
# container_name: postgres
image: "postgres:11.1"
env_file:
- ./resources/postgres_config/env_file
networks:
- db_nw
pyramid_app:
stdin_open: true
tty: true
image: image_from_dockerfile
env_file:
- ./resources/postgres_config/env_file
volumes:
- ./volumes/pyramid_app:/app
image: image_from_dockerfile
working_dir: /app
command: /app/venv/bin/pserve /app/src/development.ini --reload
networks:
- db_nw
- web_nw
- redis_nw
depends_on:
- db
- redis
nginx:
image: nginx:1.13.5
ports:
- "6543:80"
volumes:
- ./volumes/nginx/conf.d:/etc/nginx/conf.d
networks:
- web_nw
depends_on:
- pyramid_app
networks:
db_nw:
driver: bridge
web_nw:
driver: bridge
redis_nw:
driver: bridge