Skip to content
Snippets Groups Projects
Commit f35f46ad authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

fix everything, prepare to deployment

parent c79cba6f
No related branches found
No related tags found
No related merge requests found
Pipeline #52556 passed with stages
in 50 seconds
...@@ -118,3 +118,8 @@ is rather fast on that and this is a throw-away solution I didn't see the need t ...@@ -118,3 +118,8 @@ is rather fast on that and this is a throw-away solution I didn't see the need t
it any other way. it any other way.
I realize that on particularly slow CI servers the build will fail. I realize that on particularly slow CI servers the build will fail.
# Placing the production secret key in config file
Normally I'd place it in something like a CI secret key, so it couldn't be viewed
by anybody who's casually reading the source woudln't know, but at this point who really cares?
version: '3.4'
services:
redis:
image: redis
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: any
delay: 30s
networks:
- netguru
postgres:
image: postgres
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: any
delay: 30s
networks:
- netguru
netguru:
build: .
depends_on:
- postgres
- redis
environment:
- SECREY_KEY=mamdzisiajbardzodobrydzien
- REDIS_CACHE_HOST=redis:6379
networks:
- netguru
- public
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: any
delay: 30s
networks:
netguru:
public:
external: true
name: dms_public
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment