41 lines
698 B
YAML
41 lines
698 B
YAML
version: '3'
|
|
|
|
services:
|
|
web:
|
|
build:
|
|
context: .
|
|
dockerfile: ./apps/web/Dockerfile
|
|
restart: always
|
|
networks:
|
|
- auth_network
|
|
api:
|
|
build:
|
|
context: .
|
|
dockerfile: ./apps/api/Dockerfile
|
|
environment:
|
|
- REDIS_HOST=redis
|
|
restart: always
|
|
networks:
|
|
- auth_network
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
environment:
|
|
ALLOW_EMPTY_PASSWORD: 'yes'
|
|
networks:
|
|
- auth_network
|
|
auth_server:
|
|
image: nginx
|
|
volumes:
|
|
- ./nginx.conf:/etc/nginx/nginx.conf
|
|
restart: always
|
|
networks:
|
|
- auth_network
|
|
- app_network
|
|
|
|
networks:
|
|
auth_network:
|
|
app_network:
|
|
external: true
|
|
name: ${NETWORK_NAME}
|