-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-common.yml
executable file
·57 lines (50 loc) · 1.19 KB
/
docker-compose-common.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: '2'
services:
redis:
image: redis:latest
ldap:
image: osixia/openldap
volumes:
- ~/data/labcomp/ldap:/var/lib/ldap
environment:
- LDAP_ORGANISATION=Labcomp C.A
- LDAP_DOMAIN=labcomp.com
mysql:
image: mysql
volumes:
- ~/data/labcomp/mysql:/var/lib/mysql
environment:
- MYSQL_DATABASE=labcomp
- MYSQL_USER=labcomp
- MYSQL_PASSWORD=labcomp
- MYSQL_ROOT_PASSWORD=labcomp
admin-dev:
build:
context: .
dockerfile: Dockerfile-Development
env_file: ./.env
volumes:
- ./django:/srv/www/django
working_dir: /srv/www/django
admin-pro:
build:
context: .
dockerfile: Dockerfile-Production
env_file: ./.env
volumes:
- ./django:/srv/www/django
- ./run:/srv/www/run
working_dir: /srv/www/django
restart: always
nginx:
build: ./compose/nginx
env_file: ./.env
volumes:
- ./django/public/media/:/srv/www/public/media/
- ./django/public/staticfiles/:/srv/www/public/staticfiles/
- ./django/public/app/:/srv/www/public/app/
- ./run:/srv/www/run
restart: always
working_dir: /var/www/run
ports:
- '80:80'