-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-dev.yml
72 lines (66 loc) · 1.61 KB
/
docker-compose-dev.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.9"
services:
postgres:
image: postgres
container_name: postgres_container
hostname: ${BLOG_DB_HOST}
command: -p ${BLOG_DB_PORT}
environment:
POSTGRES_USER: ${BLOG_DB_USER}
POSTGRES_PASSWORD: ${BLOG_DB_PASSWORD}
POSTGRES_DB: ${BLOG_DB_NAME}
PGDATA: /data/postgres
volumes:
- ./data/blog/postgres:/var/lib/postgresql/data
ports:
- ${BLOG_DB_PORT}:${BLOG_DB_PORT}
networks:
- blog_main
restart: unless-stopped
pgadmin:
image: dpage/pgadmin4
container_name: pgadmin_container
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_PASSWORD}
volumes:
- /data/blog/pgadmin:/var/lib/pgadmin/data
ports:
- ${PG_ADMIN_PORT}:80
networks:
- blog_main
restart: unless-stopped
depends_on:
- postgres
redis:
container_name: ${REDIS_HOST}
hostname: ${REDIS_HOST}
image: redis:latest
ports:
- ${REDIS_PORT}:${REDIS_PORT}
restart: unless-stopped
command: redis-server --requirepass ${REDIS_PASSWORD} --port ${REDIS_PORT}
environment:
REDIS_PASSWORD: ${REDIS_PASSWORD}
REDIS_PORT: ${REDIS_PORT}
volumes:
- ./redis.conf:/usr/local/etc/redis.conf
networks:
- blog_main
seq:
image: datalust/seq:latest
container_name: seq_project_container
hostname: ${SEQ_HOST}
ports:
- ${SEQ_PORT}:80
environment:
ACCEPT_EULA: "Y"
volumes:
- ./data/project/seq:/data
networks:
- blog_main
restart: unless-stopped
networks:
blog_main:
volumes:
data: