2019-09-20 17:31:03 +02:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
driver: bridge
|
|
|
|
ipam:
|
|
|
|
config:
|
|
|
|
- subnet: 172.177.09.0/24
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
postgres_data:
|
|
|
|
user_data:
|
|
|
|
|
|
|
|
services:
|
2019-10-22 16:00:41 +02:00
|
|
|
devenv:
|
2019-09-20 17:31:03 +02:00
|
|
|
privileged: true
|
|
|
|
build:
|
|
|
|
context: ./
|
|
|
|
hostname: 'uxbox-devenv'
|
|
|
|
container_name: 'uxbox-devenv'
|
|
|
|
command: "/home/uxbox/init.sh"
|
|
|
|
stop_signal: SIGINT
|
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
volumes:
|
|
|
|
- "user_data:/home/uxbox/local"
|
|
|
|
- "${PWD}:/home/uxbox/uxbox"
|
|
|
|
- "${HOME}/.m2:/home/uxbox/.m2"
|
|
|
|
- "${HOME}/.gitconfig:/home/uxbox/.gitconfig"
|
|
|
|
|
|
|
|
ports:
|
|
|
|
- 3449:3449
|
|
|
|
- 6060:6060
|
|
|
|
|
|
|
|
environment:
|
|
|
|
- UXBOX_HTTP_SERVER_DEBUG=false
|
2019-11-18 11:52:57 +01:00
|
|
|
- UXBOX_DATABASE_URI="postgresql://postgres/uxbox"
|
2019-09-20 17:31:03 +02:00
|
|
|
- UXBOX_DATABASE_USERNAME="uxbox"
|
2019-09-21 20:12:11 +02:00
|
|
|
- UXBOX_DATABASE_PASSWORD="uxbox"
|
2019-09-20 17:31:03 +02:00
|
|
|
|
|
|
|
postgres:
|
2019-10-22 16:00:41 +02:00
|
|
|
image: postgres:12
|
2019-09-20 17:31:03 +02:00
|
|
|
hostname: 'uxbox-devenv-postgres'
|
|
|
|
container_name: 'uxbox-devenv-postgres'
|
|
|
|
restart: always
|
|
|
|
stop_signal: SIGINT
|
|
|
|
ports:
|
|
|
|
- 5432:5432
|
|
|
|
environment:
|
|
|
|
- POSTGRES_INITDB_ARGS="--data-checksums"
|
|
|
|
- POSTGRES_DB=uxbox
|
|
|
|
- POSTGRES_USER=uxbox
|
2019-09-21 20:12:11 +02:00
|
|
|
- POSTGRES_PASSWORD=uxbox
|
2019-09-20 17:31:03 +02:00
|
|
|
volumes:
|
|
|
|
- postgres_data:/var/lib/postgresql/data
|