docker-compose.yml for development

ex-png
Marcin Kulik 7 years ago
parent b863d48102
commit 83ee648b5f
No known key found for this signature in database
GPG Key ID: 9AA270F0A59B4381

@ -2,6 +2,7 @@
.gitignore
.stuff
.bundle
.m2
tmp/*
log/*
target

1
.gitignore vendored

@ -39,3 +39,4 @@ pom.xml.asc
/dev/src/local.clj
/volumes
/.m2

@ -0,0 +1,5 @@
RAILS_ENV=development
BASE_URL=http://localhost:3000
SECRET_KEY_BASE=19c70247f4034dd5ce4f3d6bd3b2b592624b63439d518367de9add564fdee9e6b8513f6cec24c2a933a84ea639136786813bb70d3dc4e84a365205a52e5bf1fa
LEIN_ROOT=yes
BUNDLE_PATH=/bundle

@ -0,0 +1,36 @@
version: '3'
volumes:
bundle:
m2:
services:
postgres:
image: postgres
container_name: asciinema_dev_postgres
redis:
image: redis
container_name: asciinema_dev_redis
smtp:
image: namshi/smtp
container_name: asciinema_dev_smtp
web:
build: .
image: asciinema/asciinema.org
container_name: asciinema_dev_web
command: /bin/bash
links:
- redis
- postgres
- smtp
env_file: .env.development
ports:
- 3000:3000
- 4000:4000
volumes:
- bundle:/bundle:cached
- m2:/root/.m2:cached
- ../:/app:cached
Loading…
Cancel
Save