forked from kontena/kontena
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
39 lines (36 loc) · 961 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
version: '2'
services:
api:
build:
context: server
dockerfile: Dockerfile
ports:
- 9292:9292
environment:
- RACK_ENV=production
- MONGODB_URI=mongodb://mongodb:27017/kontena_development
- VAULT_KEY=asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
- VAULT_IV=kljhkljhkljhkljhkljhkljhkljhkljhkljhkljhkljhkljhkljhkljhkljhkljh
- ACME_ENDPOINT=https://acme-staging.api.letsencrypt.org/
- INITIAL_ADMIN_CODE=initialadmincode
volumes:
- ./server:/app
depends_on:
- mongodb
agent:
container_name: kontena-agent
build:
context: agent
dockerfile: Dockerfile
env_file: agent/.env
environment:
- KONTENA_URI=ws://localhost:9292
network_mode: "host"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./agent:/app
depends_on:
- api
mongodb:
image: mongo:3.0
command: mongod --smallfiles