agola/examples/docker-compose/localhost/docker-compose.yml

33 lines
979 B
YAML

version: '3.8'
services:
etcd:
image: quay.io/coreos/etcd
restart: unless-stopped
volumes:
- etcd-data:/etcd-data
environment:
ETCD_NAME: agola-etcd
ETCD_DATA_DIR: /etcd-data
ETCD_LISTEN_CLIENT_URLS: http://0.0.0.0:2379
ETCD_ADVERTISE_CLIENT_URLS: http://0.0.0.0:2379
ETCD_INITIAL_CLUSTER_TOKEN: agola-etcd-1
agola:
image: agola
restart: unless-stopped
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock
- ./configs:/configs
- agola-data:/data/agola
- agola-tmp:/tmp/agola
ports:
- 8000:8000
command: ["serve", "--components", "all-base,executor", "--config", "/configs/config.yml"]
depends_on:
- etcd
volumes:
agola-data:
agola-tmp:
etcd-data: