-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
77 lines (71 loc) · 1.44 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
version: '3'
volumes:
jenkins-data:
jenkins-log:
portainer-data:
nginx-data:
mysql-data:
nexus-data:
networks:
stack-net:
services:
jenkins:
build: ./jenkins-master
ports:
- "50000:50000"
- "8080:8080"
volumes:
- jenkins-log:/var/log/jenkins
- jenkins-data:/var/jenkins_home
- /var/run/docker.sock:/var/run/docker.sock
networks:
- stack-net
nginx:
build: ./nginx
ports:
- "80:80"
networks:
- stack-net
volumes:
- nginx-data:/etc/nginx/conf.d
mysql:
image: mysql:5.7
restart: always
environment:
MYSQL_DATABASE: 'db'
MYSQL_USER: 'admin'
MYSQL_PASSWORD: 'admin'
MYSQL_ROOT_PASSWORD: 'root'
ports:
- '3306:3306'
expose:
- '3306'
networks:
- stack-net
volumes:
- mysql-data:/var/lib/mysql
command: ['mysqld', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci']
portainer:
image: portainer/portainer
restart: always
ports:
- "8000:8000"
- "9000:9000"
networks:
- stack-net
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer-data:/data
nexus:
image: sonatype/nexus3:3.20.0
networks:
- stack-net
volumes:
- nexus-data:/nexus-data
environment:
- CONTEXT_PATH=/nexus
- MAX_HEAP=1200m
- MIN_HEAP=500m
ports:
- "8081:8081"
- "8123:8123"