-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
54 lines (46 loc) · 1.13 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
version: '3'
services:
# ==== Application ====
app:
container_name: my_bot
build:
context: ./
dockerfile: ./.docker/app/Dockerfile
env_file:
- .env
ports:
- 4000:4000
volumes:
- ./database:/app/database
- ./logs/:/app/logs
- ./assets:/app/assets
restart: unless-stopped
# depends_on:
# - database
# ==== PostgreSQL database ====
# database:
# image: postgres
# container_name: database
# restart: always
# volumes:
# - ./data:/var/lib/postgresql:rw
# environment:
# - POSTGRES_DB=${DATABASE_NAME}
# - POSTGRES_USER=${DATABASE_USER}
# - POSTGRES_PASSWORD=${DATABASE_PASSWORD}
# ports:
# - 5432:5432
# ==== MySQL database ====
# database:
# image: mysql # or `mariadb`
# container_name: database
# restart: always
# volumes:
# - ./data:/var/lib/mysql:rw
# environment:
# - MYSQL_DATABASE=${DATABASE_NAME}
# - MYSQL_USER=${DATABASE_USER}
# - MYSQL_PASSWORD=${DATABASE_PASSWORD}
# - MYSQL_ROOT_PASSWORD=${DATABASE_PASSWORD}
# ports:
# - 3306:3306