-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose-jenkins.yaml
54 lines (49 loc) · 1.24 KB
/
docker-compose-jenkins.yaml
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
# docker-compose.yaml
version: '3.8'
services:
jenkins_maven:
image: chrisslima/s107_jenkins_v2
container_name: jenkins
privileged: true
user: root
ports:
- 8080:8080
- 50000:50000
volumes:
- ./jenkins_compose/jenkins_configuration:/var/jenkins_home
# networks:
# - my_network
mongodb:
image: mongo
ports:
- 27017:27017
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: root
volumes:
- /Users/user/Documents/mongodb:/data/db
# networks:
# - my_network
mongo-express:
image: mongo-express
restart: always
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: root
ME_CONFIG_MONGODB_SERVER: mongodb
# networks:
# - my_network
# Exemplo de criação de um network para os onctainers
# networks:
# my_network:
# driver: bridge
# O código abaixo é usado para subir um outro container a partir de um dockerfile.
# Mude o nome e porta para refletir seu ambiente.
# web:
# build:
# context: ./docker
# dockerfile: dockerfile
# ports:
# - "8082:8082"