Skip to content
Snippets Groups Projects
Commit f19057b0 authored by Andres Maldonado's avatar Andres Maldonado
Browse files

[Nginx] Add docker-compose.yml for websites

parent 6893d910
No related branches found
No related tags found
No related merge requests found
version: "3.7"
volumes:
website:
external: true
doc:
external: true
school:
external: true
radio:
external: true
culture:
external: true
stiegler:
external: true
networks:
docker_default:
external: true
services:
####################
##### Site Web #####
####################
website:
container_name: website
image: registry.picasoft.net/pica-nginx:stretch-20200323
volumes:
- website:/var/www/html
labels:
- "traefik.frontend.rule=Host:www.picasoft.net,picasoft.net"
- "traefik.port=80"
- "traefik.enable=true"
restart: always
networks:
- docker_default
####################
## Documentation ###
####################
doc:
container_name: doc
image: registry.picasoft.net/pica-nginx:stretch-20200323
volumes:
- doc:/var/www/html
labels:
- "traefik.frontend.rule=Host:doc.picasoft.net"
- "traefik.port=80"
- "traefik.enable=true"
restart: always
networks:
- docker_default
####################
###### School ######
####################
school:
container_name: school
image: registry.picasoft.net/pica-nginx:stretch-20200323
volumes:
- school:/var/www/html
labels:
- "traefik.frontend.rule=Host:school.picasoft.net"
- "traefik.port=80"
- "traefik.enable=true"
restart: always
networks:
- docker_default
####################
####### Radio ######
####################
radio:
container_name: radio
image: registry.picasoft.net/pica-nginx:stretch-20200323
volumes:
- radio:/var/www/html
labels:
- "traefik.frontend.rule=Host:radio.picasoft.net"
- "traefik.port=80"
- "traefik.enable=true"
restart: always
networks:
- docker_default
####################
##### Culture ######
####################
culture:
container_name: culture
image: registry.picasoft.net/pica-nginx:stretch-20200323
volumes:
- culture:/var/www/html
labels:
- "traefik.frontend.rule=Host:culture.picasoft.net"
- "traefik.port=80"
- "traefik.enable=true"
environment:
- AUTOINDEX=true
restart: always
networks:
- docker_default
####################
##### Stiegler #####
####################
stiegler:
container_name: stiegler
image: registry.picasoft.net/pica-nginx:stretch-20200323
volumes:
- stiegler:/var/www/html
labels:
- "traefik.frontend.rule=Host:stiegler.picasoft.net"
- "traefik.port=80"
- "traefik.enable=true"
restart: always
networks:
- docker_default
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment