-
Notifications
You must be signed in to change notification settings - Fork 45
/
docker-compose.yml
52 lines (48 loc) · 1.24 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
version: '3.7'
services:
db:
image: mariadb:10.2
restart: unless-stopped
volumes:
- mariadb:/var/lib/mysql
extends:
service: base
file: docker-compose-base.yml
rmt:
build: .
restart: unless-stopped
environment:
- MYSQL_HOST=db
- SECRET_KEY_BASE=${SECRET_KEY_BASE}
- SCC_USERNAME=${SCC_USERNAME}
- SCC_PASSWORD=${SCC_PASSWORD}
volumes:
- .:/srv/www/rmt
- public:/srv/www/repo/public/
depends_on:
- db
extends:
service: base
file: docker-compose-base.yml
# Needed if you want to run SUSEConnect from inside this container.
devices:
- "/dev/mem:/dev/mem"
# Needed if you want to run SUSEConnect from inside this container.
cap_add:
- sys_rawio
command: bundle exec rails runner /srv/www/rmt/bin/compose-init.rb
nginx:
image: nginx:1.14
volumes:
- ./public:/var/www/
- ./nginx/default.conf:/tmp/default.template
ports:
- "${EXTERNAL_PORT}:80"
depends_on:
- rmt
entrypoint: /bin/bash -c 'cat /tmp/default.template | sed "s/\\\$$server_port/$EXTERNAL_PORT/g" > /etc/nginx/conf.d/default.conf && nginx -g "daemon off;"'
volumes:
public:
mariadb:
db_storage:
driver: local