-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
109 lines (101 loc) · 2.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
version: '3'
services:
db:
image: tot0ro/mariadb-neo:v0.2.0
volumes:
- "db-data:/var/lib/mysql"
environment:
- MARIADB_USER=${DB_USER}
- MARIADB_PASSWORD=${DB_PASS}
- MARIADB_ROOT_PASSWORD=${DB_ROOT_PASS}
- TZ=Asia/Seoul
networks:
- db-net
restart: always
web-intra:
image: tot0ro/django-neo:intra-v0.4.0
volumes:
- "./intra-django/app:/app"
- "static-volume:/_static"
- "media-volume:/_media"
environment:
- DB_NAME=${DB_NAME}
- DB_USER=${DB_USER}
- DB_PASS=${DB_PASS}
- DJANGO_SECRET_KEY=${DJANGO_SECRET_KEY}
- DJANGO_ALLOWED_HOSTS=${DJANGO_ALLOWED_HOSTS}
- TZ=Asia/Seoul
networks:
- intra-net
- db-net
depends_on:
- db
links:
- "db:maria"
restart: always
nginx:
image: tot0ro/nginx-neo:v0.2.0
volumes:
- "./nginx/conf.d:/etc/nginx/conf.d"
- "static-volume:/usr/share/nginx/app/_static"
- "media-volume:/usr/share/nginx/app/_media"
environment:
- TZ=Asia/Seoul
ports:
- "80:8000"
networks:
- intra-net
depends_on:
- web-intra
links:
- "web-intra:intra"
restart: always
jenkins-docker:
image: docker:dind
volumes:
- "jenkins-docker-certs:/certs/client"
- "jenkins-data:/var/jenkins_home"
command: --storage-driver=overlay2
environment:
- DOCKER_TLS_CERTDIR=/certs
networks:
jenkins-net:
aliases:
- docker
privileged: true
depends_on:
- nginx
restart: always
jenkins-blueocean:
image: tot0ro/jenkins-blueocean-neo:v0.4.0
volumes:
- "jenkins-data:/var/jenkins_home"
- "jenkins-docker-certs:/certs/client:ro"
ports:
- "8080:8080"
- "50000:50000"
environment:
- DOCKER_HOST=tcp://docker:2376
- DOCKER_CERT_PATH=/certs/client
- DOCKER_TLS_VERIFY=1
- RESTAPI_USER=${RESTAPI_USER}
- RESTAPI_PASS=${RESTAPI_PASS}
- TZ=Asia/Seoul
networks:
- jenkins-net
- intra-net
depends_on:
- jenkins-docker
links:
- "nginx:intra"
restart: always
networks:
intra-net:
jenkins-net:
db-net:
volumes:
db-data:
jenkins-docker-certs:
jenkins-data:
media-volume:
static-volume: