2021-11-23 13:00:03 +00:00
|
|
|
version: '3.9'
|
|
|
|
|
|
|
|
services:
|
2021-12-05 00:17:54 +00:00
|
|
|
# ref_test_server:
|
|
|
|
# container_name: ref_test_server
|
|
|
|
# image: nginx:1.21.4-alpine
|
|
|
|
# volumes:
|
|
|
|
# - ./certbot:/etc/letsencrypt:ro
|
|
|
|
# - ./nginx:/etc/nginx
|
|
|
|
# - ./src/html:/usr/share/nginx/html
|
|
|
|
# - ./ref-test/admin/static:/usr/share/nginx/html/admin/static
|
|
|
|
# - ./ref-test/quiz/static:/usr/share/nginx/html/quiz/static
|
|
|
|
# ports:
|
|
|
|
# - 80:80
|
|
|
|
# - 443:443
|
|
|
|
# restart: unless-stopped
|
|
|
|
# networks:
|
|
|
|
# - frontend
|
|
|
|
# depends_on:
|
|
|
|
# - ref_test_app
|
|
|
|
|
2021-12-05 03:49:31 +00:00
|
|
|
ref_test_app:
|
|
|
|
container_name: ref_test_app
|
|
|
|
build: ./ref-test
|
|
|
|
volumes:
|
|
|
|
- ./ref-test:/ref-test
|
|
|
|
env_file:
|
|
|
|
- ./.env
|
|
|
|
ports:
|
|
|
|
- 5000:5000
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- frontend
|
|
|
|
- backend
|
|
|
|
depends_on:
|
|
|
|
- ref_test_db
|
|
|
|
- ref_test_postfix
|
2021-12-05 00:17:54 +00:00
|
|
|
|
2021-11-23 13:00:03 +00:00
|
|
|
ref_test_db:
|
|
|
|
container_name: ref_test_db
|
|
|
|
image: mongo:5.0.4-focal
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
2021-12-05 00:17:54 +00:00
|
|
|
- ./database/data:/data
|
2021-11-23 13:00:03 +00:00
|
|
|
- ./database/initdb.d/:/docker-entrypoint-initdb.d/
|
|
|
|
env_file:
|
|
|
|
- ./.env
|
|
|
|
ports:
|
2021-12-05 03:49:31 +00:00
|
|
|
- 27017
|
2021-11-23 13:00:03 +00:00
|
|
|
networks:
|
|
|
|
- backend
|
|
|
|
|
|
|
|
ref_test_postfix:
|
|
|
|
container_name: ref_test_postfix
|
|
|
|
image: catatnight/postfix:latest
|
|
|
|
restart: unless-stopped
|
|
|
|
env_file:
|
|
|
|
- ./.env
|
|
|
|
ports:
|
2021-12-05 03:49:31 +00:00
|
|
|
- 25
|
2021-11-23 13:00:03 +00:00
|
|
|
networks:
|
|
|
|
- backend
|
|
|
|
|
2021-12-05 00:17:54 +00:00
|
|
|
# ref_test_certbot:
|
|
|
|
# container_name: ref_test_certbot
|
|
|
|
# image: certbot/certbot:v1.21.0
|
|
|
|
# volumes:
|
|
|
|
# - ./certbot:/etc/letsencrypt
|
|
|
|
# -
|
|
|
|
|
|
|
|
|
2021-11-23 13:00:03 +00:00
|
|
|
networks:
|
|
|
|
frontend:
|
|
|
|
external: false
|
|
|
|
backend:
|
|
|
|
external: false
|