-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
84 lines (77 loc) · 1.66 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
74
75
76
77
78
79
80
81
82
83
84
services:
postgres:
image: postgres:15.2
environment:
POSTGRES_USER: tenthings
POSTGRES_PASSWORD: test_db_password
ports:
- '5432:5432'
volumes:
- tenthings-postgres:/var/lib/postgresql/data
pgadmin:
image: dpage/pgadmin4
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: admin@admin.com
PGADMIN_DEFAULT_PASSWORD: root
PGADMIN_CONFIG_NODE_BLACKLIST: '["Catalogs", "Casts"]'
ports:
- '5050:80'
links:
- postgres
volumes:
- ~/data/pgadmin_data:/var/lib/pgadmin
- ./servers.json:/pgadmin4/servers.json
- ./pgpass:/pagadmin4/pgpass
entrypoint: >
/bin/sh -c "
mkdir -m 700 /var/lib/pgadmin/storage/admin_admin.com;
chown -R pgadmin:pgadmin /var/lib/pgadmin/storage/admin_admin.com;
cp -prv /pgadmin4/pgpass /var/lib/pgadmin/storage/admin_admin.com/;
chmod 600 /var/lib/pgadmin/storage/admin_admin.com/pgpass;
/entrypoint.sh
"
redis:
image: redis:7.0
ports:
- '6379:6379'
volumes:
- tenthings-redis:/var/lib/redis/data
sidekiq:
build:
context: .
command: bundle exec sidekiq
links:
- postgres
- redis
env_file:
- .env
nginx:
build:
context: .
dockerfile: ./Dockerfile.nginx
links:
- api
ports:
- '8020:8020'
api:
build:
context: .
volumes:
- ./api:/opt/app
links:
- postgres
- redis
ports:
- '8010:8010'
env_file:
- .env
web:
build:
context: web
dockerfile: Dockerfile
ports:
- '3000:3000'
volumes:
tenthings-postgres:
tenthings-redis: