-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose-without-ssl.yml
42 lines (39 loc) · 1.13 KB
/
docker-compose-without-ssl.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
version: '2'
services:
db:
image: registry.opensuse.org/opensuse/mariadb:latest
environment:
- MYSQL_INITDB_SKIP_TZINFO=1
restart: always
volumes:
- ./mariadb:/var/lib/mysql
extends:
service: base
file: docker-compose-base.yml
rmt:
image: registry.opensuse.org/home/bjin01/branches/opensuse/templates/images/15.2/images/opensuse/rmt-server:latest
environment:
- MYSQL_HOST=db
- MYSQL_DATABASE=rmt
- MYSQL_USER=rmt
- MYSQL_PASSWORD=rmt
- MYSQL_PWD=toor
- MYSQL_ROOT_PASSWORD=toor
- SCC_USERNAME=${SCC_USERNAME}
- SCC_PASSWORD=${SCC_PASSWORD}
volumes:
- ./public:/var/lib/rmt/public
- ./rmt-start.sh:/usr/local/bin/rmt-start.sh
depends_on:
- db
entrypoint: /bin/bash /usr/local/bin/rmt-start.sh
nginx:
image: registry.opensuse.org/opensuse/nginx:latest
volumes:
- ./public:/usr/share/rmt/public
- ./nginx/rmt-server-http.conf:/etc/nginx/vhosts.d/rmt-server-http.conf
ports:
- "${EXTERNAL_PORT_HTTP}:80"
depends_on:
- rmt
entrypoint: /bin/bash -c 'nginx -g "daemon off;"'