Verified Commit 945fc043 authored by David Haynes's avatar David Haynes 🙆

First pass on docker stack/swarm support

- moved to v3
- added deploy tags
- mysql dies after 20s for some reason
parent 129618b9
Pipeline #1608 passed with stages
in 2 minutes and 36 seconds
version: '2'
version: "3"
services:
db:
image: mysql
deploy:
replicas: 1
resources:
limits:
cpus: "0.25"
memory: 100M
restart_policy:
condition: on-failure
networks:
- gonet
ports:
- "3306:3306"
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
MYSQL_DATABASE: go
MYSQL_USER: go
MYSQL_PASSWORD: go
web:
build: .
restart: always
image: go_web
deploy:
replicas: 1
resources:
limits:
cpus: "0.25"
memory: 100M
restart_policy:
condition: on-failure
networks:
- gonet
ports:
- '8000:8000'
command: /bin/bash ./startup.sh -python go/manage.py runserver 0.0.0.0:8000
......@@ -27,10 +56,5 @@ services:
- GO_EMAIL_TO=
- superuser=dhaynes3
db:
image: mysql
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
MYSQL_DATABASE: go
MYSQL_USER: go
MYSQL_PASSWORD: go
networks:
gonet:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment