45 lines
904 B
YAML
45 lines
904 B
YAML
services:
|
|
realcity-app:
|
|
build:
|
|
context: .
|
|
dockerfile: docker/app/Dockerfile
|
|
container_name: realcity-app
|
|
env_file:
|
|
- docker/env/.env.docker.prod # Variables de entorno para producción
|
|
ports:
|
|
- "9000:9000"
|
|
# NO montamos volúmenes bind: todo está adentro de la imagen
|
|
depends_on:
|
|
- redis
|
|
networks:
|
|
- koneko
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
container_name: realcity-redis
|
|
restart: always
|
|
networks:
|
|
- koneko
|
|
|
|
nginx:
|
|
image: nginx:1.23-alpine
|
|
container_name: realcity-nginx
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
volumes:
|
|
- ./docker/app/nginx.conf:/etc/nginx/nginx.conf
|
|
- ./docker/app/ssl:/etc/nginx/ssl
|
|
depends_on:
|
|
- realcity-app
|
|
networks:
|
|
- koneko
|
|
|
|
networks:
|
|
koneko:
|
|
external: false
|
|
driver: bridge
|
|
ipam:
|
|
config:
|
|
- subnet: 172.20.0.0/24
|