# Copyright 2020 Changkun Ou. All rights reserved. # Use of this source code is governed by a MIT # license that can be found in the LICENSE file. name: website services: website: container_name: website restart: always image: website:latest deploy: replicas: 1 # .env is optional: without it the site serves, the blog's editor only # previews, and /library/ answers 503. env_file: - path: .env required: false # The folders served at //, such as the books and the blog, and # golang.design's folder, which its repositories publish to. volumes: - /www/changkun.de:/www/changkun.de:ro - /www/golang.design:/www/golang.design:ro # The library's cache.json and state/, written by the server. - ./data:/data environment: WWW_DIR: /www/changkun.de WWW_CORS: /demos/ WWW_SITES: golang.design=/www/golang.design logging: driver: json-file options: max-size: "10m" max-file: "3" networks: - traefik_proxy networks: traefik_proxy: external: true