Ivan Berezovskiy | 88d4402 | 2019-01-23 19:54:24 +0400 | [diff] [blame] | 1 | docker: |
| 2 | client: |
| 3 | enabled: true |
| 4 | images: |
| 5 | - jenkins:2.7.1 |
| 6 | - djangoapp:latest |
| 7 | - postgres:latest |
| 8 | compose: |
| 9 | source: |
| 10 | engine: pip |
| 11 | django_web: |
| 12 | # Run up action, any positional argument to docker-compose CLI |
| 13 | # If not defined, only docker-compose.yml is generated |
| 14 | status: up |
| 15 | environment: |
| 16 | SOMEVAR: somevalue |
| 17 | service: |
| 18 | db: |
| 19 | image: postgres |
| 20 | web: |
| 21 | image: djangoapp |
| 22 | volumes: |
| 23 | - /srv/volumes/django:/srv/django |
| 24 | ports: |
| 25 | - 8000:8000 |
| 26 | depends_on: |
| 27 | - db |
| 28 | container: |
| 29 | jenkins: |
| 30 | start: false |
| 31 | restart: unless-stopped |
| 32 | image: jenkins:2.7.1 |
| 33 | ports: |
| 34 | - 8081:8080 |
| 35 | - 50000:50000 |
| 36 | environment: |
| 37 | JAVA_OPTS: "-Dhudson.footerURL=https://www.example.com" |
| 38 | volumes: |
| 39 | - /srv/volumes/jenkins:/var/jenkins_home |
| 40 | stack: |
| 41 | nginx: |
| 42 | enabled: true |
| 43 | environment: |
| 44 | SOMEVAR: somevalue |
| 45 | version: 3.3 |
| 46 | service: |
| 47 | nginx: |
| 48 | image: nginx |
| 49 | volumes: |
| 50 | - /srv/volumes/nginx:/srv/nginx |
| 51 | ports: |
| 52 | - 80:80 |