-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (52 loc) · 1.3 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
version: "3"
services:
# Setup custom Jenkins with docker-compose
jenkins:
container_name: smartcine-jenkins
networks:
- smartcine-network
restart: on-failure:3
build:
context: ./dockerfiles/jenkins # use the current directory as the build contexts
dockerfile: Dockerfile
ports:
- 9996:8080
- 50000:50000
volumes:
- ./volumes/jenkins:/var/jenkins_home
- /var/run/docker.sock:/var/run/docker.sock
- /usr/bin/docker:/usr/bin/docker
db:
container_name: smartcine-mysql
image: mysql
networks:
- smartcine-network
restart: on-failure:3
ports:
- 3306:3306
environment:
- MYSQL_ROOT_PASSWORD=dbsmartcinedinhvl
- MYSQL_DATABASE=smartcine
- MYSQL_ROOT_HOST=%
volumes:
- ./volumes/mysql:/var/lib/mysql
- ./dockerfiles/mysql/smartcine.initdb.sql:/docker-entrypoint-initdb.d/smartcine.initdb.sql
phpmyadmin:
container_name: smartcine-phpmyadmin
image: phpmyadmin
networks:
- smartcine-network
restart: on-failure:3
ports:
- 9997:80
environment:
- PMA_HOST=db
- PMA_PORT=3306
- PMA_USER=root
- PMA_PASSWORD=dbsmartcinedinhvl
depends_on:
- db
networks:
smartcine-network:
name: smartcine-network
driver: bridge