mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-09 15:05:35 +00:00
31 lines
590 B
YAML
31 lines
590 B
YAML
version: "3.8"
|
|
|
|
volumes:
|
|
db_volume_data:
|
|
driver: local
|
|
|
|
services:
|
|
mylinks_db:
|
|
container_name: MyLinksDB
|
|
image: mysql:latest
|
|
restart: always
|
|
volumes:
|
|
- db_volume_data:/var/lib/postgresql/data
|
|
- ./docker-config/mysql-dev-init.sql:/docker-entrypoint-initdb.d/init.sql
|
|
env_file:
|
|
- .env
|
|
|
|
mylinks:
|
|
restart: always
|
|
container_name: MyLinks
|
|
image: sonny93/my-links:latest
|
|
# build:
|
|
# context: .
|
|
ports:
|
|
- 127.0.0.1:5000:3000
|
|
env_file:
|
|
- .env
|
|
depends_on:
|
|
mylinks_db:
|
|
condition: service_started
|