micro/example/compose.yml

26 lines
658 B
YAML
Raw Permalink Normal View History

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:
2024-05-16 16:06:44 +00:00
- ./micro.yaml:/usr/src/micro/micro.yaml
- ./data:/data
2021-04-02 04:57:37 +00:00
postgres:
2024-05-16 16:06:44 +00:00
image: postgres:16-alpine
2021-04-02 04:57:37 +00:00
restart: unless-stopped
environment:
2024-05-16 16:06:44 +00:00
- POSTGRES_PASSWORD=youshallnotpass # change this!
2021-04-02 04:57:37 +00:00
- POSTGRES_USER=micro
- POSTGRES_DB=micro
volumes:
2024-05-16 16:06:44 +00:00
- ./.pg-data:/var/lib/postgresql/data
tunnel:
container_name: tunnel
image: cloudflare/cloudflared:latest
2021-04-02 04:57:37 +00:00
restart: unless-stopped
2024-05-16 16:06:44 +00:00
command: tunnel run micro
2021-04-02 04:57:37 +00:00
volumes:
2024-05-16 16:06:44 +00:00
- ./.cloudflared:/etc/cloudflared
- ./tunnel.yaml:/etc/cloudflared/config.yml