-
Notifications
You must be signed in to change notification settings - Fork 45
/
docker-compose.yml
38 lines (35 loc) · 952 Bytes
/
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
version: '3.5'
services:
db:
image: postgres
environment:
POSTGRES_PASSWORD: password123
ports:
- "5432:5432"
volumes:
- pgdata_jenkins:/var/lib/postgresql/data/
api:
build: ./api
restart: always
command: python /var/jenkins_home/workspace/demo/api/manage.py runserver 0.0.0.0:8000
ports:
- "8002:8000"
volumes:
- api_data:/docker_api
- jenkins_data:/var/jenkins_home
depends_on:
- db
jenkins:
image: jenkins/jenkins:lts-jdk11
restart: always
environment:
JAVA_OPTS: "-Djava.awt.headless=true -Xmx512m -Xms512m -Djava.util.logging.config.file=/var/jenkins_home/log.properties"
ports:
- "8080:8080"
- "50000:50000"
volumes:
- jenkins_data:/var/jenkins_home
volumes:
api_data:
jenkins_data:
pgdata_jenkins: