-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
55 lines (51 loc) · 1.35 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
version: '3'
services:
sparcssso:
build: '.'
restart: always
depends_on:
- db
volumes:
- './sparcssso/local_settings.py:/usr/app/sparcssso/sparcssso/local_settings.py:ro'
- 'sparcssso_log:/usr/app/sparcssso/archive/buffer'
- 'sparcssso_letters:/usr/app/sparcssso/letters'
environment:
- 'SSO_DB_NAME=sparcssso'
- 'SSO_DB_USER=root'
- 'SSO_DB_PASSWORD=unsafe-password'
- 'SSO_DB_HOST=db'
- 'SSO_DB_PORT=3306'
networks:
sparcssso:
aliases:
- sparcssso
nginx:
build: './nginx'
restart: always
ports:
- '80:80'
depends_on:
- sparcssso
networks:
- sparcssso
db:
image: 'mysql:5.7'
restart: always
environment:
- 'MYSQL_DATABASE=sparcssso'
- 'MYSQL_ROOT_PASSWORD=unsafe-password'
command:
- '--character-set-server=utf8mb4'
- '--collation-server=utf8mb4_unicode_ci'
volumes:
- 'sparcssso_db:/var/lib/mysql'
networks:
sparcssso:
aliases:
- db
networks:
sparcssso:
volumes:
sparcssso_db:
sparcssso_log:
sparcssso_letters: