diff options
| author | 2022-12-12 10:26:38 +0000 | |
|---|---|---|
| committer | 2022-12-12 10:26:38 +0000 | |
| commit | 4afa513dced3b9ef024bc366b4fc884802730d50 (patch) | |
| tree | 51098e478054a66439e98dfab89cbbedf5d9f5c0 /docker-compose.yaml | |
| parent | Backport from xs. (diff) | |
| download | penes-snac2-4afa513dced3b9ef024bc366b4fc884802730d50.tar.gz penes-snac2-4afa513dced3b9ef024bc366b4fc884802730d50.tar.xz penes-snac2-4afa513dced3b9ef024bc366b4fc884802730d50.zip | |
Add docker-compose support, so a working development server with HTTPS can be started with:
docker-compose build && docker-compose up
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 | |||