46 lines
No EOL
799 B
Text
46 lines
No EOL
799 B
Text
services:
|
|
server:
|
|
image: image/image:1.0.0
|
|
container_name: image
|
|
restart: always
|
|
ports:
|
|
- '3000:3000'
|
|
environment:
|
|
- VARIABLE=value
|
|
volumes:
|
|
- ./data:/data
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
networks:
|
|
- stuff
|
|
secrets:
|
|
- db_password
|
|
depends_on:
|
|
- db
|
|
|
|
db:
|
|
image: image:1.0.0
|
|
container_name: image-db
|
|
restart: always
|
|
environment:
|
|
- STATUS=running
|
|
networks:
|
|
- stuff
|
|
volumes:
|
|
- ./mysql:/var/lib/mysql
|
|
secrets:
|
|
- db_root_password
|
|
- db_password
|
|
|
|
secrets:
|
|
db_password:
|
|
file: secrets/db_password.txt
|
|
db_root_password:
|
|
file: secrets/db_root_password.txt
|
|
|
|
networks:
|
|
stuff:
|
|
external: false
|
|
|
|
volumes:
|
|
db-data: |