Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2.1'
- networks:
- outside:
- external: true
- services:
- postgres-project-v2:
- image: postgres:10
- ports:
- - "${DB_EXTERNAL_PORT}:5432"
- volumes:
- - ./yiidocker/db_data:/var/lib/postgresql
- environment:
- POSTGRES_USER: "${DB_USERNAME}"
- POSTGRES_PASSWORD: "${DB_PASSWORD}"
- POSTGRES_DB: "${DB_DB}"
- networks:
- - default
- php-fpm-project-v2:
- build:
- context: ./yiidocker/php
- dockerfile: ${DOCKERFILE_PHP}
- expose:
- - 9000
- volumes:
- - ./:/app
- depends_on:
- - postgres-project-v2
- environment:
- - DB_DSN
- - DB_USERNAME
- - DB_PASSWORD
- networks:
- - default
- - outside
- # sysctls:
- # - net.ipv6.conf.all.disable_ipv6=1
- # - net.ipv6.conf.default.disable_ipv6=1
- # - net.ipv6.conf.lo.disable_ipv6=1
- # - net.ipv6.conf.eth0.disable_ipv6=1
- # - net.ipv6.conf.all.accept_redirects=0
- # - net.ipv6.conf.all.accept_source_route=0
- # - net.ipv6.conf.all.forwarding=0
- # - net.ipv6.conf.default.router_solicitations=2
- nginx-project-v2:
- image: nginx:latest
- ports:
- - "${NGINX_PORT_FRONTEND}:8081"
- - "${NGINX_PORT_FRONTEND_TEST}:8082"
- volumes:
- - ./yiidocker/nginx:/etc/nginx/conf.d
- - ./:/app
- - ./yiidocker/logs/nginx:/var/log/nginx
- depends_on:
- - php-fpm-project-v2
- networks:
- - default
- - outside
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement