forked from AdRoll/batchiepatchie
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (57 loc) · 1.4 KB
/
docker-compose.yml
File metadata and controls
62 lines (57 loc) · 1.4 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
version: '2'
services:
api:
build: .
environment:
- BUILD_ENV=${BUILD_ENV}
- BATCHIEPATCHIE_CONFIG=batchiepatchie-dockercompose-config.toml
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
volumes:
- .:/go/src/github.com/AdRoll/batchiepatchie
ports:
- "9999:9999"
- "5454:5454"
privileged: true # Privileges are dropped by docker_run.sh, privileges needed for user setup in local development
links:
- postgres
ulimits:
nproc: 65535
nofile:
soft: 90000
hard: 90000
depends_on:
- "postgres"
- "migrations"
migrations:
build: .
volumes:
- .:/go/src/github.com/AdRoll/batchiepatchie
links:
- postgres
depends_on:
- "postgres"
command: sh -c 'sleep 20 && cd migrations && goose postgres "user=postgres dbname=postgres sslmode=disable host=postgres password=123456" up'
postgres:
image: postgres:9.6.2-alpine
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: 123456
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
volumes:
- ./frontend/src:/opt/frontend/src
- ./frontend/public:/opt/frontend/public
ports:
- "8080:8080"
links:
- api
command: npm run dev
networks:
default:
ipam:
config:
- subnet: "172.29.0.0/16"