Skip to content

Instantly share code, notes, and snippets.

@marcossaore
Created March 4, 2020 17:21
Show Gist options
  • Save marcossaore/55cd30acc1843c7fda5a429a24d60305 to your computer and use it in GitHub Desktop.
Save marcossaore/55cd30acc1843c7fda5a429a24d60305 to your computer and use it in GitHub Desktop.
version: "3.2"
services:
nginx:
container_name: nginx
image: nginx:1.17.8
ports:
- 80:80
volumes:
- ./config/nginx/site.conf:/etc/nginx/conf.d/site.conf
- ./php_app:/php_app
links:
- php_app
- node_app
php_app:
build: php_app
container_name: php_app
volumes:
- ./php_app:/php_app
environment:
- SESSION_HANDLER=redis
- SESSION_PATH=tcp://redis:${REDIS_PORT}?auth=${REDIS_PASSWORD}
- SESSION_MAX_TIME_LIFE=86400
node_app:
build: node_app
container_name: node_app
volumes:
- ./node_app:/node_app
redis:
image: redis:4-alpine
container_name: redis
command: redis-server --requirepass ${REDIS_PASSWORD}
ports:
- ${REDIS_PORT}:${REDIS_PORT}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment