Recipe-app main
This commit is contained in:
+50
@@ -0,0 +1,50 @@
|
||||
services:
|
||||
recipe-frontend:
|
||||
build:
|
||||
context: ./frontend
|
||||
dockerfile: Dockerfile
|
||||
container_name: recipe-frontend
|
||||
restart: unless-stopped
|
||||
# env_file:
|
||||
# - .env
|
||||
networks:
|
||||
- proxy
|
||||
- recipe-internal
|
||||
|
||||
recipe-api:
|
||||
image: hashicorp/http-echo:1.0
|
||||
container_name: recipe-api
|
||||
command: ["-listen=:8080", "-text=recipe-api is alive"]
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- proxy
|
||||
- recipe-internal
|
||||
|
||||
recipe-db:
|
||||
image: mariadb:11
|
||||
container_name: recipe-db
|
||||
restart: unless-stopped
|
||||
# env_file:
|
||||
# - .env
|
||||
environment:
|
||||
MARIADB_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD}
|
||||
MARIADB_DATABASE: ${MARIADB_DATABASE}
|
||||
MARIADB_USER: ${MARIADB_USER}
|
||||
MARIADB_PASSWORD: ${MARIADB_PASSWORD}
|
||||
volumes:
|
||||
- recipe_db_data:/var/lib/mysql
|
||||
- ./db/init:/docker-entrypoint-initdb.d
|
||||
command: >
|
||||
--character-set-server=utf8mb4
|
||||
--collation-server=utf8mb4_unicode_ci
|
||||
networks:
|
||||
- recipe-internal
|
||||
|
||||
volumes:
|
||||
recipe_db_data:
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
external: true
|
||||
recipe-internal:
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user