You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
1.7 KiB
68 lines
1.7 KiB
version: '3.5'
|
|
services:
|
|
#Nginx Service
|
|
api-service-nginx:
|
|
image: nginx:alpine
|
|
container_name: api-service-nginx
|
|
restart: unless-stopped
|
|
tty: true
|
|
ports:
|
|
- "${PORT_HTTP}:80"
|
|
- "${PORT_HTTPS}:443"
|
|
volumes:
|
|
- ./:/var/www
|
|
- ./nginx/conf.d:/etc/nginx/conf.d
|
|
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
|
|
- ./certbot/www:/var/www/certbot/:ro
|
|
- ./certbot/conf/:/etc/nginx/ssl/:ro
|
|
- ./certbot/htpasswd/:/etc/nginx/htpasswd/
|
|
networks:
|
|
- app-network
|
|
# - app-network-2
|
|
# - app-network-rabbit
|
|
# - app-network-mysql
|
|
#-----------------------------------------------------------------------------
|
|
#PHP Service
|
|
api-service-php:
|
|
image: api-service-php
|
|
container_name: api-service-php
|
|
build:
|
|
context: .
|
|
dockerfile: ./Dockerfile
|
|
restart: unless-stopped
|
|
tty: true
|
|
working_dir: /var/www
|
|
volumes:
|
|
- ./:/var/www
|
|
- ./php/local.ini:/usr/local/etc/php/conf.d/local.ini
|
|
- ./php-fpm/www.conf:/usr/local/etc/php-fpm.d/www.conf
|
|
networks:
|
|
- app-network
|
|
# - app-network-2
|
|
# - app-network-rabbit
|
|
# - app-network-mysql
|
|
certbot:
|
|
image: certbot/certbot:latest
|
|
volumes:
|
|
- ./certbot/www/:/var/www/certbot/:rw
|
|
- ./certbot/conf/:/etc/letsencrypt/:rw
|
|
#-------------------------------------------------------------------------------
|
|
#Docker Networks
|
|
networks:
|
|
app-network:
|
|
name: gk.internal
|
|
external: true
|
|
# app-network-2:
|
|
# name: speech
|
|
# external: true
|
|
# app-network-rabbit:
|
|
# name: gk_rabbit.internal
|
|
# external: true
|
|
# app-network-mysql:
|
|
# name: gk_mysql_sunday
|
|
# external: true
|
|
# default:
|
|
# name: service-se-api-net
|
|
# driver: bridge
|
|
volumes:
|
|
service-api-data:
|
|
|