-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathdocker-compose.yml
76 lines (69 loc) · 1.42 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
version: '3.8'
services:
web:
image: nginx
ports:
- 8000:8000
volumes:
- .:/app
- ./nginx/docker-compose.conf:/etc/nginx/conf.d/default.conf
depends_on:
- db
networks:
- lhs
php:
build:
context: .
dockerfile: docker/Dockerfile-php
ports:
- 9000:9000
volumes:
- .:/app
- ./etc/config.php-docker:/app/etc/config.php
- ./var-docker:/app/var # mask Vagrant's var until we're using docker everywhere
- php-session:/session # must be owned by www-data, as done in Dockerfile-php
depends_on:
- db
networks:
- lhs
python:
build:
context: .
dockerfile: docker/Dockerfile-python
environment:
DJANGO_SETTINGS_MODULE: lhs.docker_settings
ports:
- 9001:80
volumes:
- .:/app
- php-session:/session
depends_on:
- db
networks:
- lhs
# ruby:
# build:
# context: .
# dockerfile: docker/Dockerfile-ruby
# ports:
# - 8002:8002
# depends_on:
# - db
# networks:
# - lhs
db:
# Flourish relies on pg_attrdef.pg_attrdef, which is removed in 12
image: "postgres:11-alpine"
environment:
- POSTGRES_DB=hackspace
- POSTGRES_USER=hackspace
- POSTGRES_PASSWORD=hackspace
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- lhs
volumes:
php-session:
pgdata:
networks:
lhs: