mirror of
https://github.com/usatiuk/writer.git
synced 2025-10-29 00:17:48 +01:00
35 lines
1.3 KiB
YAML
35 lines
1.3 KiB
YAML
#-------------------------------------------------------------------------------------------------------------
|
|
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
|
|
#-------------------------------------------------------------------------------------------------------------
|
|
|
|
version: '3'
|
|
services:
|
|
app:
|
|
# Uncomment the next line to use a non-root user for all processes. You can also
|
|
# simply use the "remoteUser" property in devcontainer.json if you just want VS Code
|
|
# and its sub-processes (terminals, tasks, debugging) to execute as the user. On Linux,
|
|
# you may need to update USER_UID and USER_GID in .devcontainer/Dockerfile to match your
|
|
# user if not 1000. See https://aka.ms/vscode-remote/containers/non-root for details.
|
|
# user: node
|
|
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
|
|
# Overrides default command so things don't shut down after the process ends.
|
|
command: sleep infinity
|
|
|
|
links:
|
|
- db
|
|
|
|
db:
|
|
image: mariadb
|
|
restart: unless-stopped
|
|
ports:
|
|
- 3306:3306
|
|
environment:
|
|
MYSQL_PASSWORD: writer
|
|
MYSQL_USER: writer
|
|
MYSQL_DATABASE: writer
|
|
MYSQL_ROOT_PASSWORD: writerroot |