-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
72 lines (68 loc) · 1.63 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: '3'
services:
postgres:
restart: always
image: postgres:latest
# see: https://stackoverflow.com/a/60369496/2290820
# env_file: .env
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
- POSTGRES_DB=postgres
ports:
- "5432"
volumes:
- pgdata:/var/lib/postgresql/data/
container_name: postgres
# redis:
# restart: always
# image: redis:latest
# ports:
# - "6379:6379"
# volumes:
# - redisdata:/data
mongo:
image: mongo:4.4
ports:
- "27017:27017"
expose:
- 27017
volumes:
- ./mongo/db/:/data/db
command: ["--replSet", "rs0", "--bind_ip", "localhost,mongo"]
backend:
container_name: parse-server
# command: bash -c "curl -Lo ./wait https://github.com/ufoscout/docker-compose-wait/releases/download/2.7.3/wait && chmod +x ./wait && ./wait"
env_file: .env
restart: always
build:
context: ./back4app/
deploy:
replicas: 1
restart_policy:
condition: any
expose:
- 8000
- 8080
- 1337
ports:
- 8000:8000
- 8080:8080
- 1337:1337
links:
- postgres
- mongo
hostname: parse-server
environment:
- WAIT_HOSTS=postgres:5432,mongo:27017
- WAIT_HOSTS_TIMEOUT=300
- WAIT_SLEEP_INTERVAL=30
- WAIT_HOST_CONNECT_TIMEOUT=30
- databaseURI="mongodb://mongo/parse"
- DATABASE_URI="mongodb://mongo/parse"
- APPLICATION_ID=APPLICATION_ID
- appId=APPLICATION_ID
- masterKey=masterKey
- PARSE_SERVER_MASTER_KEY=masterKey
- PARSE_SERVER_APPLICATION_ID=APPLICATION_ID
volumes:
pgdata: