-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
73 lines (68 loc) · 1.72 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
73
version: '3'
services:
web:
image: oracle/graalvm-ce:20.0.0-java11
ports:
- 8080:8080
- 8000:8000
env_file:
- /etc/environment
environment:
MONGO_URL_FULL_STACK_ZIO: mongodb://root:secret@mongo:27017/admin
DATABASE_URL_FULL_STACK_ZIO: jdbc:postgresql://postgres:5432/fullstackzio?user=root&password=secret
JAVA_OPTS: "-Xdebug -Xrunjdwp:server=y,transport=dt_socket,suspend=n,address=8000"
links:
- mongo
- postgres
depends_on:
- mongo
- postgres
volumes:
- ./target/universal/stage/:/home/full-stack-zio
command: /home/full-stack-zio/bin/app
mongo:
image: mongo:3.6
restart: always
command: --smallfiles
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: secret
volumes:
- ./cache/mongodata:/data/db
ports:
- 27017:27017
mongo-express:
image: mongo-express
restart: always
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: secret
depends_on:
- mongo
# docker-compose run postgres bash
# psql -h postgres -d fullstackzio -U root
postgres:
image: postgres:12.2
ports:
- "5432:5432"
environment:
POSTGRES_DB: fullstackzio
POSTGRES_USER: root
POSTGRES_PASSWORD: secret
volumes:
- ./cache/postgres:/var/lib/postgresql/data
# mkdir -p cache/pgadmin
# chown -R 5050:5050 cache/pgadmin
pgadmin:
image: dpage/pgadmin4:latest
ports:
- "8082:80"
depends_on:
- postgres
environment:
PGADMIN_DEFAULT_EMAIL: root@root.com
PGADMIN_DEFAULT_PASSWORD: secret
volumes:
- ./cache/pgadmin:/var/lib/pgadmin