diff options
| author | 2021-06-04 06:30:02 -0700 | |
|---|---|---|
| committer | 2021-06-04 09:35:44 -0700 | |
| commit | 3c4cbd3d76bb6f5545920c66ba23126f71637766 (patch) | |
| tree | 2ab4857f6ecda7c0336e34c725caa4ff11dfe4ea /docker-compose.yml | |
| parent | Remove talentpool channel constants (diff) | |
| parent | Merge pull request #1619 from python-discord/vcokltfre/chore/star-imports-sma... (diff) | |
Merge branch 'main' into ks123/goodbye-talentpool-channel
Diffstat (limited to 'docker-compose.yml')
| -rw-r--r-- | docker-compose.yml | 20 | 
1 files changed, 20 insertions, 0 deletions
| diff --git a/docker-compose.yml b/docker-compose.yml index 8afdd6ef1..bdfedf5c2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,8 +4,20 @@  version: "3.7" +x-logging: &logging +  logging: +    driver: "json-file" +    options: +      max-file: "5" +      max-size: "10m" + +x-restart-policy: &restart_policy +  restart: always +  services:    postgres: +    << : *logging +    << : *restart_policy      image: postgres:12-alpine      environment:        POSTGRES_DB: pysite @@ -13,11 +25,15 @@ services:        POSTGRES_USER: pysite    redis: +    << : *logging +    << : *restart_policy      image: redis:5.0.9      ports:        - "127.0.0.1:6379:6379"    snekbox: +    << : *logging +    << : *restart_policy      image: ghcr.io/python-discord/snekbox:latest      init: true      ipc: none @@ -26,6 +42,8 @@ services:      privileged: true    web: +    << : *logging +    << : *restart_policy      image: ghcr.io/python-discord/site:latest      command: ["run", "--debug"]      networks: @@ -46,6 +64,8 @@ services:        STATIC_ROOT: /var/www/static    bot: +    << : *logging +    << : *restart_policy      build:        context: .        dockerfile: Dockerfile | 
