-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
39 lines (35 loc) · 909 Bytes
/
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
services:
ainewsbot_app:
build: .
develop:
watch:
- action: sync
path: ./src
target: /app
environment:
- LEMMY_INSTANCE=${LEMMY_INSTANCE}
- LEMMY_USERNAME=${LEMMY_USERNAME}
- LEMMY_PASSWORD=${LEMMY_PASSWORD}
- LEMMY_COMMUNITY=${LEMMY_COMMUNITY}
- POST_REVIEW=${POST_REVIEW}
- DATABASE_URI=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@ainewsbot_db:5432/${POSTGRES_DB}
depends_on:
- ainewsbot_db
restart: always
networks:
- ainewsbot_bridge
ainewsbot_db:
image: postgres
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
ports:
- "5432:5432"
volumes:
- ./data/db:/var/lib/postgresql/data
networks:
- ainewsbot_bridge
networks:
ainewsbot_bridge:
driver: bridge