2019-06-03 09:53:31 -05:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
backend_m2:
|
|
|
|
backend_data:
|
2019-07-04 05:38:27 -05:00
|
|
|
postgres_data:
|
2019-06-03 09:53:31 -05:00
|
|
|
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
driver: bridge
|
|
|
|
ipam:
|
|
|
|
config:
|
2019-07-04 03:36:49 -05:00
|
|
|
- subnet: 172.177.10.0/24
|
2019-06-03 09:53:31 -05:00
|
|
|
|
|
|
|
services:
|
2019-07-04 05:38:27 -05:00
|
|
|
postgres:
|
2019-07-03 10:49:15 -05:00
|
|
|
image: postgres:11
|
2019-06-03 09:53:31 -05:00
|
|
|
restart: always
|
2019-08-08 12:17:25 -05:00
|
|
|
stop_signal: SIGINT
|
2019-06-03 09:53:31 -05:00
|
|
|
ports:
|
2019-07-04 03:36:49 -05:00
|
|
|
- 5432:5432
|
2019-06-03 09:53:31 -05:00
|
|
|
environment:
|
|
|
|
- POSTGRES_INITDB_ARGS="--data-checksums"
|
|
|
|
- POSTGRES_DB=uxbox
|
|
|
|
- POSTGRES_USER=uxbox
|
|
|
|
- POSTGRES_PASSWORD=uxbox_postgres_password
|
|
|
|
volumes:
|
2019-07-04 05:38:27 -05:00
|
|
|
- postgres_data:/var/lib/postgresql/data
|
2019-06-03 09:53:31 -05:00
|
|
|
# - /etc/localtime:/etc/localtime:ro
|
|
|
|
# - /etc/timezone:/etc/timezone:ro
|
|
|
|
|
2019-07-04 04:56:52 -05:00
|
|
|
backend:
|
2019-08-08 12:17:25 -05:00
|
|
|
image: uxbox-backend:latest
|
2019-07-04 02:24:20 -05:00
|
|
|
restart: always
|
2019-06-03 09:53:31 -05:00
|
|
|
depends_on:
|
2019-07-04 05:38:27 -05:00
|
|
|
- postgres
|
2019-06-03 09:53:31 -05:00
|
|
|
ports:
|
2019-07-04 02:24:20 -05:00
|
|
|
- 6060
|
2019-06-03 09:53:31 -05:00
|
|
|
volumes:
|
2019-07-05 08:24:11 -05:00
|
|
|
- backend_data:/srv/uxbox/data
|
2019-06-03 09:53:31 -05:00
|
|
|
- backend_m2:/root/.m2
|
|
|
|
# - /etc/localtime:/etc/localtime:ro
|
|
|
|
# - /etc/timezone:/etc/timezone:ro
|
|
|
|
|
|
|
|
environment:
|
|
|
|
# HTTP setup
|
|
|
|
- UXBOX_HTTP_SERVER_DEBUG=false
|
|
|
|
- UXBOX_MEDIA_URI="/media/"
|
|
|
|
- UXBOX_ASSETS_URI="/static/"
|
2019-07-05 08:24:11 -05:00
|
|
|
- UXBOX_MEDIA_DIRECTORY="data/media"
|
|
|
|
- UXBOX_ASSETS_DIRECTORY="data/static"
|
2019-06-03 09:53:31 -05:00
|
|
|
# Database setup
|
2019-08-08 12:17:25 -05:00
|
|
|
- UXBOX_DATABASE_URI="jdbc:postgresql://postgres/uxbox"
|
2019-06-03 09:53:31 -05:00
|
|
|
- UXBOX_DATABASE_USERNAME="uxbox"
|
|
|
|
- UXBOX_DATABASE_PASSWORD="uxbox_postgres_password"
|
|
|
|
# Mail setup
|
|
|
|
- UXBOX_EMAIL_REPLY_TO="no-reply@uxbox.io"
|
|
|
|
- UXBOX_EMAIL_FROM="no-reply@uxbox.io"
|
|
|
|
# STMP setup
|
|
|
|
- UXBOX_SMTP_HOST="localhost"
|
|
|
|
- UXBOX_SMTP_PORT=25
|
|
|
|
- UXBOX_SMTP_USER="uxbox"
|
|
|
|
- UXBOX_SMTP_PASSWORD="youshouldoverwritethiswithsomethingelse"
|
|
|
|
- UXBOX_SMTP_SSL=false
|
|
|
|
- UXBOX_SMTP_TLS=false
|
|
|
|
- UXBOX_SMTP_ENABLED=false
|
|
|
|
# Security setup
|
|
|
|
- UXBOX_SECRET="foobar"
|
|
|
|
|
2019-07-04 04:56:52 -05:00
|
|
|
frontend:
|
2019-08-08 12:17:25 -05:00
|
|
|
image: uxbox-frontend:latest
|
2019-06-03 09:53:31 -05:00
|
|
|
restart: always
|
|
|
|
depends_on:
|
2019-07-04 04:56:52 -05:00
|
|
|
- backend
|
2019-06-03 09:53:31 -05:00
|
|
|
ports:
|
2019-07-03 13:41:16 -05:00
|
|
|
- 8080:8080
|
2019-06-03 09:53:31 -05:00
|
|
|
volumes:
|
|
|
|
- backend_data:/srv/uxbox/
|
|
|
|
# - /etc/localtime:/etc/localtime:ro
|
|
|
|
# - /etc/timezone:/etc/timezone:ro
|
2019-07-04 03:36:49 -05:00
|
|
|
|
2019-07-04 04:56:52 -05:00
|
|
|
frontend-dev:
|
2019-08-08 12:17:25 -05:00
|
|
|
image: uxbox-frontend-dbg:latest
|
2019-07-04 03:36:49 -05:00
|
|
|
restart: always
|
|
|
|
depends_on:
|
2019-07-04 04:56:52 -05:00
|
|
|
- backend
|
2019-07-04 03:36:49 -05:00
|
|
|
ports:
|
|
|
|
- 8081:8080
|
|
|
|
volumes:
|
|
|
|
- backend_data:/srv/uxbox/
|
|
|
|
# - /etc/localtime:/etc/localtime:ro
|
|
|
|
# - /etc/timezone:/etc/timezone:ro
|
|
|
|
|