This commit is contained in:
23
.devcontainer/docker-compose.yml
Normal file
23
.devcontainer/docker-compose.yml
Normal file
@ -0,0 +1,23 @@
|
||||
services:
|
||||
app:
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: .devcontainer/Dockerfile
|
||||
command: sleep infinity
|
||||
depends_on:
|
||||
- db
|
||||
environment:
|
||||
DATABASE_URL: mysql://website:website@db:3306/website
|
||||
ports:
|
||||
- '4321:4321'
|
||||
|
||||
db:
|
||||
image: mariadb:latest
|
||||
environment:
|
||||
MARIADB_ROOT_PASSWORD: root
|
||||
MARIADB_DATABASE: website
|
||||
MARIADB_USER: website
|
||||
MARIADB_PASSWORD: website
|
||||
ports:
|
||||
- '3306:3306'
|
||||
restart: always
|
Reference in New Issue
Block a user