0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-02 12:28:54 -05:00

🎉 Add redis to devenv docker compose.

This commit is contained in:
Andrey Antukh 2020-04-19 19:36:48 +02:00
parent 04d364225c
commit 96472b6cd2
2 changed files with 19 additions and 6 deletions

View file

@ -32,6 +32,7 @@ RUN set -ex; \
imagemagick \ imagemagick \
webp \ webp \
jq \ jq \
redis-tools \
; \ ; \
rm -rf /var/lib/apt/lists/*; rm -rf /var/lib/apt/lists/*;

View file

@ -1,4 +1,4 @@
version: '3' version: "3"
networks: networks:
default: default:
@ -15,13 +15,16 @@ services:
main: main:
privileged: true privileged: true
image: "uxbox-devenv" image: "uxbox-devenv"
hostname: 'uxbox-devenv-main' hostname: "uxbox-devenv-main"
container_name: 'uxbox-devenv-main' container_name: "uxbox-devenv-main"
command: "/home/uxbox/init.sh" command: "/home/uxbox/init.sh"
stop_signal: SIGINT stop_signal: SIGINT
depends_on: depends_on:
- postgres - postgres
- smtp - smtp
- redis
volumes: volumes:
- "user_data:/home/uxbox/local" - "user_data:/home/uxbox/local"
- "${HOME}/.m2:/home/uxbox/.m2" - "${HOME}/.m2:/home/uxbox/.m2"
@ -41,7 +44,7 @@ services:
- UXBOX_DATABASE_PASSWORD=uxbox - UXBOX_DATABASE_PASSWORD=uxbox
smtp: smtp:
container_name: 'uxbox-devenv-smtp' container_name: "uxbox-devenv-smtp"
image: mwader/postfix-relay image: mwader/postfix-relay
restart: always restart: always
environment: environment:
@ -51,8 +54,8 @@ services:
postgres: postgres:
image: postgres:12 image: postgres:12
command: postgres -c config_file=/etc/postgresql.conf command: postgres -c config_file=/etc/postgresql.conf
hostname: 'uxbox-devenv-postgres' hostname: "uxbox-devenv-postgres"
container_name: 'uxbox-devenv-postgres' container_name: "uxbox-devenv-postgres"
restart: always restart: always
stop_signal: SIGINT stop_signal: SIGINT
ports: ports:
@ -66,3 +69,12 @@ services:
- ./files/postgresql.conf:/etc/postgresql.conf - ./files/postgresql.conf:/etc/postgresql.conf
- ./files/postgresql_init.sql:/docker-entrypoint-initdb.d/init.sql - ./files/postgresql_init.sql:/docker-entrypoint-initdb.d/init.sql
- postgres_data:/var/lib/postgresql/data - postgres_data:/var/lib/postgresql/data
redis:
image: redis:6.0-rc3
hostname: "uxbox-devenv-redis"
container_name: "uxbox-devenv-redis"
restart: always
ports:
- 6379:6379