diff options
| author | 2022-12-13 08:15:52 +0000 | |
|---|---|---|
| committer | 2022-12-13 08:15:52 +0000 | |
| commit | 1eb5c7a6e2f5436c8f0be77acc06672a5f24562a (patch) | |
| tree | 51098e478054a66439e98dfab89cbbedf5d9f5c0 /docker-compose.yaml | |
| parent | Backport from xs. (diff) | |
| parent | Add docker-compose support, so a working development server with HTTPS can be... (diff) | |
| download | snac2-1eb5c7a6e2f5436c8f0be77acc06672a5f24562a.tar.gz snac2-1eb5c7a6e2f5436c8f0be77acc06672a5f24562a.tar.xz snac2-1eb5c7a6e2f5436c8f0be77acc06672a5f24562a.zip | |
Merge pull request 'Add docker-compose support' (#22) from tobyjaffey/snac2:docker into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/22
Diffstat (limited to 'docker-compose.yaml')
| -rw-r--r-- | docker-compose.yaml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..bc4abf7 --- /dev/null +++ b/docker-compose.yaml | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | --- | ||
| 2 | version: '3' | ||
| 3 | |||
| 4 | services: | ||
| 5 | snac: | ||
| 6 | build: . | ||
| 7 | image: snac | ||
| 8 | container_name: snac | ||
| 9 | restart: unless-stopped | ||
| 10 | security_opt: | ||
| 11 | - no-new-privileges:true | ||
| 12 | volumes: | ||
| 13 | - ./data:/data | ||
| 14 | ports: | ||
| 15 | - "8001:8001" | ||
| 16 | |||
| 17 | nginx-alpine-ssl: | ||
| 18 | build: examples/nginx-alpine-ssl | ||
| 19 | image: examples/nginx-alpine-ssl | ||
| 20 | container_name: nginx-alpine-ssl | ||
| 21 | restart: unless-stopped | ||
| 22 | security_opt: | ||
| 23 | - no-new-privileges:true | ||
| 24 | ports: | ||
| 25 | - "443:443" | ||
| 26 | - "80:80" | ||
| 27 | |||