mirror of
https://github.com/openSUSE/osem.git
synced 2026-02-02 02:01:34 -05:00
Setting up the app if it isn't already setup should be some concious step and not run every time we boot the containers. This also fixes the problem that processes are not killed if you stop the container with CTRL+C because the bash script is not passing on signals.
21 lines
378 B
YAML
21 lines
378 B
YAML
version: "2.4"
|
|
|
|
services:
|
|
database:
|
|
image: postgres:12-alpine
|
|
environment:
|
|
PGDATA: /var/lib/postgresql/data/pgdata
|
|
POSTGRES_PASSWORD: mysecretpassword
|
|
osem:
|
|
build:
|
|
context: .
|
|
args:
|
|
CONTAINER_USERID: 1000
|
|
command: foreman start -p 3000
|
|
depends_on:
|
|
- database
|
|
ports:
|
|
- 3000:3000
|
|
volumes:
|
|
- .:/osem
|