micro/example/compose.yml

34 lines
1.0 KiB
YAML
Raw Normal View History

2023-06-05 00:02:16 +00:00
version: '3'
2021-04-02 04:57:37 +00:00
services:
micro:
image: sylver/micro:main
2021-04-02 04:57:37 +00:00
restart: unless-stopped
volumes:
2022-06-20 17:56:57 +00:00
- $PWD/.microrc.yaml:/usr/src/micro/.microrc.yaml
2021-04-05 19:13:23 +00:00
- $PWD/data:/data
2021-04-02 04:57:37 +00:00
# uncomment this if you dont care about https, then comment out the proxy service
# ports:
2023-06-05 00:02:16 +00:00
# - 80:3000
2021-04-02 04:57:37 +00:00
postgres:
image: postgres:12-alpine
restart: unless-stopped
environment:
2024-01-07 03:33:19 +00:00
# leaving this as default should be fine as postgres will only ever be exposed to services
# in this compose file, but you might still want to consider changing it to something more secure.
2021-04-02 04:57:37 +00:00
- POSTGRES_PASSWORD=youshallnotpass
- POSTGRES_USER=micro
- POSTGRES_DB=micro
volumes:
- $PWD/.pg-data:/var/lib/postgresql/data
# comment this out if you dont care about https, then uncomment the above ports
proxy:
image: caddy:2-alpine
restart: unless-stopped
ports:
- 80:80
- 443:443
volumes:
- $PWD/.caddy-data:/data
- $PWD/.caddy-config:/config
- $PWD/Caddyfile:/etc/caddy/Caddyfile