mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-03-22 01:41:57 +00:00
43 lines
1.0 KiB
YAML
43 lines
1.0 KiB
YAML
version: "3.8"
|
|
|
|
services:
|
|
caddy:
|
|
image: caddy:2
|
|
volumes:
|
|
- ./Caddyfile:/etc/caddy/Caddyfile
|
|
network_mode: service:elixir
|
|
|
|
elixir:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
args:
|
|
# Elixir Version: 1.9, 1.10, 1.10.4, ...
|
|
VARIANT: "1.13.4"
|
|
# Phoenix Version: 1.4.17, 1.5.4, ...
|
|
PHOENIX_VERSION: "1.6.2"
|
|
# Node Version: 12, 14, ...
|
|
NODE_VERSION: "14"
|
|
RUBY_VERSION: "2.7.5"
|
|
|
|
volumes:
|
|
- ..:/workspace:cached
|
|
# Runs app on the same network as the database container, allows "forwardPorts" in devcontainer.json function.
|
|
network_mode: service:postgres
|
|
|
|
# Overrides default command so things don't shut down after the process ends.
|
|
command: sleep infinity
|
|
|
|
postgres:
|
|
image: postgres:13.5
|
|
restart: unless-stopped
|
|
volumes:
|
|
- postgres-data:/var/lib/postgresql/data
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_DB: firezone_dev
|
|
|
|
volumes:
|
|
postgres-data:
|