54 lines
1022 B
YAML
54 lines
1022 B
YAML
|
|
version: '3.4'
|
|
|
|
services:
|
|
|
|
local-server:
|
|
restart: "no"
|
|
container_name: "medicine-mts"
|
|
tty: True
|
|
image: python-local-3.12
|
|
environment:
|
|
DEBUG: 'True'
|
|
|
|
POSTGRES_HOST: docker.for.mac.localhost
|
|
POSTGRES_PORT: 54322
|
|
POSTGRES_USER: user
|
|
POSTGRES_PASSWORD: password
|
|
|
|
REDIS_HOST: docker.for.mac.localhost
|
|
REDIS_PORT: 63790
|
|
REDIS_DB: 1
|
|
volumes:
|
|
- .:/app
|
|
- ./volumes/venv:/venv
|
|
networks:
|
|
- shared-network
|
|
ports:
|
|
- "9800:80"
|
|
|
|
prod:
|
|
restart: "no"
|
|
container_name: "medicine-mts-prod"
|
|
tty: True
|
|
image: docker.med-logic.ru/medicine-mts:latest
|
|
environment:
|
|
DEBUG: 'False'
|
|
|
|
POSTGRES_HOST: docker.for.mac.localhost
|
|
POSTGRES_PORT: 54322
|
|
POSTGRES_USER: user
|
|
POSTGRES_PASSWORD: password
|
|
|
|
REDIS_HOST: docker.for.mac.localhost
|
|
REDIS_PORT: 63790
|
|
REDIS_DB: 1
|
|
networks:
|
|
- shared-network
|
|
ports:
|
|
- "9900:80"
|
|
|
|
networks:
|
|
shared-network:
|
|
external: true
|